Fix TSL2591 detection by adding command bit to register read (#9215)

This commit is contained in:
Heath Dutton🕴️
2026-01-08 01:08:41 -05:00
committed by GitHub
parent fb7af18f4f
commit 86326f294d

View File

@@ -487,7 +487,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
}
break;
case TSL25911_ADDR:
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x12), 1);
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0xA0 | 0x12), 1);
if (registerValue == 0x50) {
type = TSL2591;
logFoundDevice("TSL25911", (uint8_t)addr.address);