Skip to content

Commit da3f4bc

Browse files
committed
add a check for TLS2561 to prevent false positives
1 parent 58c7fac commit da3f4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sonoff/xsns_16_tsl2561.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void Tsl2561Detect(void)
6767
uint8_t id;
6868

6969
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
70-
if (!Tsl.id(&id)) return;
70+
if (!Tsl.id(id)) return;
7171
Tsl.begin();
7272
if (Tsl.on()) {
7373
tsl2561_type = 1;

0 commit comments

Comments
 (0)