Files
firmware/src/detect
GeorgeandThomas Göttgens cb4efd8f41 Classify 0x55 as BQ27220 on the T-Lora Pager (#11961)
* Classify 0x55 as BQ27220 on the T-Lora Pager

The scanner tells the T-Deck keyboard and the BQ27220 fuel gauge apart
at 0x55 by reading register 0x04: nonzero means BQ27220, zero means
TDECKKB. A Pager gauge that needs a configuration reset reads zero, so
it was detected as a T-Deck keyboard. firstKeyboard() prefers TDECKKB
over TCA8418KB, so the cardKB thread polled the gauge every 300 ms and
fed its bytes to the UI as keystrokes, producing phantom input and
unsent-by-user messages.

The Pager always has the BQ27220 at 0x55 and the TCA8418 keyboard at
0x34, so skip the heuristic there and classify 0x55 as BQ27220.

Fixes #11959

* Classify 0x55 as BQ27220 on every HAS_BQ27220 board

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2026-09-25 20:15:53 +00:00
..
2026-08-20 12:28:57 +00:00