mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 23:17:43 +00:00
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;
|
uint8_t id;
|
||||||
|
|
||||||
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
|
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
|
||||||
if (!Tsl.id(&id)) return;
|
if (!Tsl.id(id)) return;
|
||||||
Tsl.begin();
|
Tsl.begin();
|
||||||
if (Tsl.on()) {
|
if (Tsl.on()) {
|
||||||
tsl2561_type = 1;
|
tsl2561_type = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user