From 2a686788de0fc95236c1b2f3cafcb43825cd1612 Mon Sep 17 00:00:00 2001 From: j-w9 <295470691+j-w9@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:21:01 -0500 Subject: [PATCH 1/3] HardwareReport: decode ICSR bit 31 as an unsigned value The field value was shifted with the signed >>, so NMIPENDSET was shown as 0x-1 when bit 31 was set. --- HardwareReport/HardwareReport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HardwareReport/HardwareReport.js b/HardwareReport/HardwareReport.js index d286cde1..ab1aba56 100644 --- a/HardwareReport/HardwareReport.js +++ b/HardwareReport/HardwareReport.js @@ -483,7 +483,7 @@ function show_watchdog(log) { for (let i = start_bit; i < stop_bit+1; i++) { mask |= (1 << i) } - let value = (ICSR & mask) >> start_bit + let value = (ICSR & mask) >>> start_bit let text = name + ": 0x" + value.toString(16) if (decoder != null) { text += " " + decoder(value) From 381f7bea2a55f2b9f92f8728fe844463f7cc54d3 Mon Sep 17 00:00:00 2001 From: j-w9 <295470691+j-w9@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:21:01 -0500 Subject: [PATCH 2/3] HardwareReport: skip comment lines and indentation in .param files A "# comment" line was stored as a NaN parameter, which made Save All Parameters throw. Lines are now trimmed and comments skipped. --- HardwareReport/HardwareReport.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HardwareReport/HardwareReport.js b/HardwareReport/HardwareReport.js index ab1aba56..655463f9 100644 --- a/HardwareReport/HardwareReport.js +++ b/HardwareReport/HardwareReport.js @@ -1910,7 +1910,10 @@ function load_param_file(text) { var lines = text.split('\n') params = {} for (let i in lines) { - var line = lines[i]; + var line = lines[i].trim(); + if (line.startsWith("#")) { + continue + } let v = line.split(/[\s,=\t]+/) if (v.length >= 2) { var name = v[0] From 999a9073564908c5e7742833287f75d4e610ff73 Mon Sep 17 00:00:00 2001 From: j-w9 <295470691+j-w9@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:21:01 -0500 Subject: [PATCH 3/3] HardwareReport: ignore boot GPS messages for GPS that are no longer configured A boot message naming a GPS that is disabled in the final parameters threw a TypeError and stopped the load. --- HardwareReport/HardwareReport.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HardwareReport/HardwareReport.js b/HardwareReport/HardwareReport.js index 655463f9..be84c809 100644 --- a/HardwareReport/HardwareReport.js +++ b/HardwareReport/HardwareReport.js @@ -1331,6 +1331,10 @@ function load_gps(log) { const device_match = message.match(regex_gps_device) if ((num_match != null) && (device_match != null)) { const gps_num = parseInt(num_match[0]) - 1 + if (gps[gps_num] == null) { + // GPS named at boot is not configured in the final parameters + continue + } gps[gps_num].device = device_match[0] } }