From 322a1b4e55e5489f480ae284d757812a70d17cee Mon Sep 17 00:00:00 2001 From: ladyada Date: Tue, 2 Apr 2019 17:25:53 -0400 Subject: [PATCH] hand add https://github.com/adafruit/Adafruit_TSL2561/pull/15 --- Adafruit_TSL2561_U.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_TSL2561_U.cpp b/Adafruit_TSL2561_U.cpp index f77eaf7..50706f9 100644 --- a/Adafruit_TSL2561_U.cpp +++ b/Adafruit_TSL2561_U.cpp @@ -107,7 +107,7 @@ boolean Adafruit_TSL2561_Unified::init() { /* Make sure we're actually connected */ uint8_t x = read8(TSL2561_REGISTER_ID); - if ((x & 0xF0) != 0x10) { // ID code for TSL2561 + if (x & 0x05) { // ID code for TSL2561 return false; } _tsl2561Initialised = true;