Commit 4669b3d
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 3097bff commit 4669b3d
3 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
| 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