Merge pull request #17 from maditnerd/patch-1

Fix for ESP32 with Compiler Warning:All
This commit is contained in:
Limor "Ladyada" Fried
2019-02-15 17:15:41 -05:00
committed by GitHub

View File

@@ -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 & 0xF0) != 0x10) { // ID code for TSL2561
return false;
}
_tsl2561Initialised = true;