Commit c8505fb
committed
fix: guard radio !p crash, getTZ() bounds, and worldmap JS variable
Three independent stability fixes:
1. Guard !p command when radio HAL not initialized - the test packet
command dereferences radioHal without checking, crashing on
unconfigured boards.
2. Guard getTZ() against short/empty timezone buffer - unconditionally
skipping 3 chars for deduplication prefix reads past buffer end on
first boot. Returns "GMT0" as safe default.
3. Correct worldmap JS variable reference - AJAX handler used
'x.status' (console script variable) instead of 'wmx.status',
preventing worldmap data updates when both scripts are active.1 parent 0d6e019 commit c8505fb
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| |||
0 commit comments