From 74f1ad8a1beeb34a47fac3b3dc2a93f22aa3629e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 4 Mar 2020 16:34:06 +0100 Subject: [PATCH] Fix APDS9960 compile error --- tasmota/xsns_27_apds9960.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xsns_27_apds9960.ino b/tasmota/xsns_27_apds9960.ino index fe8f0ffec..c426d535a 100644 --- a/tasmota/xsns_27_apds9960.ino +++ b/tasmota/xsns_27_apds9960.ino @@ -240,7 +240,7 @@ const char HTTP_APDS_9960_SNS[] PROGMEM = #define DEFAULT_GCONF3 0 // All photodiodes active during gesture #define DEFAULT_GIEN 0 // Disable gesture interrupts -#define ERROR 0xFF +#define APDS9960_ERROR 0xFF /* Direction definitions */ enum { @@ -1530,7 +1530,7 @@ int16_t readGesture(void) (uint8_t*)fifo_data, (fifo_level * 4) ); if( bytes_read == -1 ) { - return ERROR; + return APDS9960_ERROR; } /* If at least 1 set of data, sort the data into U/D/L/R */