From a59dbea6271cffbebb19c884424aa4d14881a87f Mon Sep 17 00:00:00 2001 From: Smittix Date: Mon, 2 Feb 2026 21:23:56 +0000 Subject: [PATCH] Fix Meshtastic connection type not restored on page refresh Pass connection_type to updateConnectionUI() in checkStatus() so TCP connections display correctly after browser refresh instead of defaulting to Serial. Fixes #98 Co-Authored-By: Claude Opus 4.5 --- static/js/modes/meshtastic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/modes/meshtastic.js b/static/js/modes/meshtastic.js index 38ab43c..7d0f32f 100644 --- a/static/js/modes/meshtastic.js +++ b/static/js/modes/meshtastic.js @@ -143,7 +143,7 @@ const Meshtastic = (function() { if (data.running) { isConnected = true; - updateConnectionUI(true, data.device); + updateConnectionUI(true, data.device, data.connection_type); if (data.node_info) { updateNodeInfo(data.node_info); localNodeId = data.node_info.num;