#826 read 5V_TEST as active-HIGH, so since beta_103 every ThinkNode M9
showed charging on battery and battery on USB. The screensaver stayed up
on battery as if on power, and the 3% switch-off never fired on battery.
GPIO1 reads LOW while USB power is present, as in Meshtastic's M9
variant (EXT_PWR_DETECT 1, EXT_PWR_DETECT_VALUE LOW).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- On HAS_THINKNODE_M9, only snap batteryMvSampled()'s EMA on hardware
charger state transitions (GPIO1 5V_TEST / GPIO8 DONE#) rather than
>70 mV voltage steps, so a transient IR drop during a +22 dBm LR1110
transmission is smoothed by the EMA instead of snapping downward.
- Sample batteryMvSampled() directly in pagerLowBatteryTick() rather
than batteryMvSmoothed()'s 20 s held value, since the 3-read (6 s)
debounce plus 10 s countdown (16 s total) is shorter than the 20 s
hold window and would otherwise repeat a single sagged reading.
Signed-off-by: TinkeringDao <203040288+TinkeringDao@users.noreply.github.com>