From 86a56b7b7174b65b618839f028bb12b290a7a872 Mon Sep 17 00:00:00 2001 From: Kevin Baluha Date: Mon, 11 Feb 2019 11:22:14 -0700 Subject: [PATCH] verify that tsl2561 works with new ads1115 --- sonoff/xsns_16_tsl2561.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xsns_16_tsl2561.ino b/sonoff/xsns_16_tsl2561.ino index f7777cf18..ab923f2e8 100644 --- a/sonoff/xsns_16_tsl2561.ino +++ b/sonoff/xsns_16_tsl2561.ino @@ -67,8 +67,8 @@ void Tsl2561Detect(void) uint8_t id; if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) { - if (!Tsl.id(id)) return; Tsl.begin(); + if (!Tsl.id(id)) return; if (Tsl.on()) { tsl2561_type = 1; snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, tsl2561_types, Tsl.address(), id);