You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a ESP32 Dev Module.
If I uncomment #define DEBUG to enable debug I get this:
In file included from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/stdio.h:47:0,
from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:27,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\PN532_debug.h:6,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\emulatetag.cpp:10:
C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/sys/reent.h:463:10: error: #if with no expression
In file included from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/stdio.h:47:0,
from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:27,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\PN532_debug.h:6,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\llcp.cpp:3:
C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/sys/reent.h:463:10: error: #if with no expression
In file included from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/stdio.h:47:0,
from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:27,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\PN532_debug.h:6,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\mac_link.cpp:3:
C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/sys/reent.h:463:10: error: #if with no expression
In file included from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/stdio.h:47:0,
from C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:27,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\PN532_debug.h:6,
from C:\Users\Jordy\Documents\Arduino\libraries\PN532\snep.cpp:3:
C:\Users\Jordy\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib/sys/reent.h:463:10: error: #if with no expression
exit status 1
Compilation error: exit status 1
Anyone else got this?
The text was updated successfully, but these errors were encountered:
Hi,
I got the same issue on a CubeCell HTCC-AB02.
In my case, there was a conflict with the board library, which also use a DEBUG statement in its debug.h, with a IFNDEF DEBUG to avoid redundancy.
Using such common names in a library is poor practice and should be fixed ASAP (on both side really).
To solve the issue, you can modify the redundancy checks in PN532_debug.h
I hope it will work for you too.
This fix may need to be propagated to other files if there is an update of the library, but should work for now.
I should really make a PR to fix this, but don't have time RN (maybe later... if i remember)
As a quick and dirty fix you can comment out
#define SERIAL 0x0
in line 50 of Arduino.h which is located at %localappdata%/Arduino15/packages/esp32/hardware/esp32/2.0.8/cores/esp32/Arduino.h
Using a ESP32 Dev Module.
If I uncomment
#define DEBUG
to enable debug I get this:Anyone else got this?
The text was updated successfully, but these errors were encountered: