You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: tdeck battery meter accuracy and usb/charging detection
- Average 8 adc samples and use a 2.11 divider multiplier (2.0 nominal
plus ~10% load correction, matching other t-deck firmwares) instead
of a single noisy sample scaled by 2.
- usb/charging detection used tud_mounted(), which is always false on
the debug (usb-serial-jtag) build where TinyUSB is never initialised;
infer usb connection from usb_serial_jtag_is_connected() there.
- Report charging as usb present while below 4300mV - with no charger
status line, a higher reading means the charger is holding up the
sense node with the battery full.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments