APDS-9960_RGB_and_Gesture_Sensor icon indicating copy to clipboard operation
APDS-9960_RGB_and_Gesture_Sensor copied to clipboard

ESP8266 NA_STATE Issue

Open epiller opened this issue 3 years ago • 0 comments

I seem to be getting the following error when compiling on ESP8266 (NodeMCU 1.0).
What's also weird is that the ESP8266WiFi "-" error only appears when I utilize your library. If I'm using the Adafruit one, everything works properly (but I'd like to use yours). The errors appear even when the sketch is completely empty (only utilizing your library), so even though I hope it's an issue on my side, I doubt it is.

`/Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/include/wl_definitions.h:46:18: error: expected identifier before '-' token
 #define NA_STATE -1
                  ^
/Users/user/Documents/Arduino/libraries/SparkFun_APDS9960_RGB_and_Gesture_Sensor/src/SparkFun_APDS9960.h:198:3: note: in expansion of macro 'NA_STATE'
   NA_STATE,
   ^
/Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/include/wl_definitions.h:46:18: error: expected '}' before '-' token
 #define NA_STATE -1
                  ^
/Users/user/Documents/Arduino/libraries/SparkFun_APDS9960_RGB_and_Gesture_Sensor/src/SparkFun_APDS9960.h:198:3: note: in expansion of macro 'NA_STATE'
   NA_STATE,
   ^

epiller avatar Jan 21 '21 22:01 epiller