Commit dad9405
committed
Sort out InkHUD applying-changes notifications
notifyApplyingChanges() was doing two jobs at its call sites in MenuApplet.cpp:
signalling a live change that is applied without restarting, and warning of an
imminent reboot. Audited every site. The finding is that none of them are
redundant, so this records why rather than removing anything.
The two live-change calls - LoRa region and modem preset - cover the seconds the
e-ink takes to redraw while the radio reconfigures, and nothing else raises them.
The reboot-path calls warn before the display goes. requestReboot() cannot absorb
those: it deliberately carries no UI, because BaseUI renders its own notice at
draw time from rebootAtMsec, while e-ink only draws when pushed.
Also worth recording: the existing notifyReboot Observable (sleep.h, fired from
Power::reboot) is a different moment - reboot execution, not scheduling - and
InkHUD already observes it to save settings and shut applets down. A new
"reboot scheduled" observable to centralise these calls would be a third reboot
signal for no functional gain, so it is not added.
clod helped too1 parent a73fd76 commit dad9405
2 files changed
Lines changed: 24 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| |||
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
375 | | - | |
| 377 | + | |
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
52 | 72 | | |
53 | 73 | | |
54 | 74 | | |
| |||
0 commit comments