Fix TSL2591 detection by adding command bit to register read (#9215)
This commit is contained in:
@@ -487,7 +487,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TSL25911_ADDR:
|
case TSL25911_ADDR:
|
||||||
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x12), 1);
|
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0xA0 | 0x12), 1);
|
||||||
if (registerValue == 0x50) {
|
if (registerValue == 0x50) {
|
||||||
type = TSL2591;
|
type = TSL2591;
|
||||||
logFoundDevice("TSL25911", (uint8_t)addr.address);
|
logFoundDevice("TSL25911", (uint8_t)addr.address);
|
||||||
|
|||||||
Reference in New Issue
Block a user