mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
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_GCONF3 0 // All photodiodes active during gesture
|
||||||
#define DEFAULT_GIEN 0 // Disable gesture interrupts
|
#define DEFAULT_GIEN 0 // Disable gesture interrupts
|
||||||
|
|
||||||
#define ERROR 0xFF
|
#define APDS9960_ERROR 0xFF
|
||||||
|
|
||||||
/* Direction definitions */
|
/* Direction definitions */
|
||||||
enum {
|
enum {
|
||||||
@ -1530,7 +1530,7 @@ int16_t readGesture(void)
|
|||||||
(uint8_t*)fifo_data,
|
(uint8_t*)fifo_data,
|
||||||
(fifo_level * 4) );
|
(fifo_level * 4) );
|
||||||
if( bytes_read == -1 ) {
|
if( bytes_read == -1 ) {
|
||||||
return ERROR;
|
return APDS9960_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If at least 1 set of data, sort the data into U/D/L/R */
|
/* If at least 1 set of data, sort the data into U/D/L/R */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user