mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-10 07:35:00 +00:00
fix keyboard/BQ27220 detection
This commit is contained in:
parent
0694b9e90d
commit
0928f2c305
@ -208,7 +208,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
|
|||||||
|
|
||||||
case TDECK_KB_ADDR:
|
case TDECK_KB_ADDR:
|
||||||
// Do we have the T-Deck keyboard or the T-Deck Pro battery sensor?
|
// Do we have the T-Deck keyboard or the T-Deck Pro battery sensor?
|
||||||
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x40), 2); // MACData
|
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x04), 1);
|
||||||
if (registerValue != 0) {
|
if (registerValue != 0) {
|
||||||
logFoundDevice("BQ27220", (uint8_t)addr.address);
|
logFoundDevice("BQ27220", (uint8_t)addr.address);
|
||||||
type = BQ27220;
|
type = BQ27220;
|
||||||
|
Loading…
Reference in New Issue
Block a user