add a check for TLS2561 to prevent false positives

This commit is contained in:
Kevin Baluha 2019-02-07 03:54:56 -07:00
parent 58c7fac140
commit da3f4bcab7
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void Tsl2561Detect(void)
uint8_t id;
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
if (!Tsl.id(&id)) return;
if (!Tsl.id(id)) return;
Tsl.begin();
if (Tsl.on()) {
tsl2561_type = 1;