From 7b877727e14129e665620391f8786a2248f362a2 Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 2 Jan 2026 17:33:57 +0000 Subject: [PATCH] Add baud rate selector for GPS dongle (fixes 4800 baud devices) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- templates/adsb_dashboard.html | 9 ++++++++- templates/index.html | 25 +++++++++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/templates/adsb_dashboard.html b/templates/adsb_dashboard.html index 4e7ffdc..31fcb61 100644 --- a/templates/adsb_dashboard.html +++ b/templates/adsb_dashboard.html @@ -765,6 +765,12 @@ + @@ -1516,6 +1522,7 @@ async function startGpsDongle() { const devicePath = document.getElementById('gpsDeviceSelect').value; + const baudrate = parseInt(document.getElementById('gpsBaudrateSelect').value) || 9600; if (!devicePath) { alert('Please select a GPS device'); return; @@ -1525,7 +1532,7 @@ const response = await fetch('/gps/start', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ device: devicePath, baudrate: 9600 }) + body: JSON.stringify({ device: devicePath, baudrate: baudrate }) }); const data = await response.json(); diff --git a/templates/index.html b/templates/index.html index 1640347..39c9538 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3574,8 +3574,16 @@ +
+ +
-
+
+ + +
-