Merge pull request #5196 from kevinbaluha/tsl2561interop

verify that tsl2561 works with new ads1115
This commit is contained in:
Theo Arends 2019-02-11 21:28:25 +01:00 committed by GitHub
commit be82878bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);