mirror of https://github.com/arendst/Tasmota.git
Merge pull request #5196 from kevinbaluha/tsl2561interop
verify that tsl2561 works with new ads1115
This commit is contained in:
commit
be82878bd2
|
@ -67,8 +67,8 @@ 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;
|
|
||||||
Tsl.begin();
|
Tsl.begin();
|
||||||
|
if (!Tsl.id(id)) return;
|
||||||
if (Tsl.on()) {
|
if (Tsl.on()) {
|
||||||
tsl2561_type = 1;
|
tsl2561_type = 1;
|
||||||
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, tsl2561_types, Tsl.address(), id);
|
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, tsl2561_types, Tsl.address(), id);
|
||||||
|
|
Loading…
Reference in New Issue