nRF24 / RF24

OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
https://nrf24.github.io/RF24
GNU General Public License v2.0
2.23k stars 1.02k forks source link

Error compiling simple test on NodeMCU 1.0 with nRF24L01 #529

Closed mRudzki closed 4 years ago

mRudzki commented 5 years ago

Hello, I'm new to RF24, and when writing some simple test for my ESP8266 I got strange error.

In file included from C:\Users\Origin\Documents\Arduino\libraries\RF24-master\RF24.cpp:9:0:

C:\Users\Origin\Documents\Arduino\libraries\RF24-master\nRF24L01.h:33:21: error: expected unqualified-id before numeric constant

 #define STATUS      0x07

                     ^

C:\Users\Origin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/sdk/include/c_types.h:76:3: note: in expansion of macro 'STATUS'

 } STATUS;

   ^

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

I have basically no idea, if it is my fault or just esp library and RF24 library are having hard time with each other.

wmarkow commented 5 years ago

There is a conflict between two different STATUS definitions:

The issue has been already fixed in cd52d61bc08 commit as suggested in #125. You are using old version of RF24 library. Please use the latest one.

mRudzki commented 5 years ago

Thanks for your answer.