From c021250c5302d127c646dd0a8faa0180a1cb660c Mon Sep 17 00:00:00 2001 From: Wolfgang <24637325+seeul8er@users.noreply.github.com> Date: Sun, 16 Aug 2026 22:00:18 +0200 Subject: [PATCH 1/6] Add UART pin configuration warning Fixes #144 --- frontend/dronebridge.js | 13 +++++++++++++ frontend/index.html | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/frontend/dronebridge.js b/frontend/dronebridge.js index f037b2c..19b2f31 100644 --- a/frontend/dronebridge.js +++ b/frontend/dronebridge.js @@ -281,6 +281,7 @@ function refresh_static_data() { const refresh_succeeded = results.every(result => result === true); if (refresh_succeeded) { static_data_ready = true; + check_for_issues(); } return refresh_succeeded; }) @@ -444,6 +445,7 @@ async function get_settings() { set_telem_proto = document.getElementById("proto").value; change_ap_ip_visibility(); change_msp_ltm_visibility(); + check_for_issues(); return true; } catch (error) { console.error("Failed to load or display settings:", error); @@ -542,6 +544,17 @@ function check_for_issues() { } else { issue_div.style.display = "none"; } + + let uart_pins_info_div = document.getElementById("uart_pins_info_div"); + let gpio_tx = document.getElementById("gpio_tx"); + let gpio_rx = document.getElementById("gpio_rx"); + let uart_pins_not_configured = static_data_ready && serial_via_JTAG === 0 && + gpio_tx.value !== "" && gpio_rx.value !== "" && gpio_tx.value === gpio_rx.value; + if (uart_pins_not_configured) { + uart_pins_info_div.style.display = "block"; + } else { + uart_pins_info_div.style.display = "none"; + } } function save_settings() { diff --git a/frontend/index.html b/frontend/index.html index 565b281..e40fa3d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -25,6 +25,10 @@