Fix APDS9960 compile error

This commit is contained in:
Theo Arends 2020-03-04 16:34:06 +01:00
parent 50b19712ac
commit 74f1ad8a1b
1 changed files with 2 additions and 2 deletions

View File

@ -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 */