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 @@ +