mirror of https://github.com/arendst/Tasmota.git
Fix APDS9960 compile error
This commit is contained in:
parent
50b19712ac
commit
74f1ad8a1b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue