mirror of https://github.com/arendst/Tasmota.git
add a check for TLS2561 to prevent false positives
This commit is contained in:
parent
58c7fac140
commit
da3f4bcab7
|
@ -67,7 +67,7 @@ void Tsl2561Detect(void)
|
|||
uint8_t id;
|
||||
|
||||
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
|
||||
if (!Tsl.id(&id)) return;
|
||||
if (!Tsl.id(id)) return;
|
||||
Tsl.begin();
|
||||
if (Tsl.on()) {
|
||||
tsl2561_type = 1;
|
||||
|
|
Loading…
Reference in New Issue