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
Indeed, it passes compilation successfully. I'll do some tests, hopefully next week and give the results.
I did not want to change variables types in the first place as just debugging code was not working and I was not sure of the implications. But I agree that changing the type should be the way to go.
Arduino board: Adafruit M0 Proto
Arduino IDE version (found in Arduino -> About Arduino menu): Using VSCode + PlatformIO
List the steps to reproduce the problem below (if possible attach a sketch or
copy the sketch code in too):
When enabling debugging in Adafruit_PN532 lib uncommenting line 71/72
Adafruit-PN532/Adafruit_PN532.cpp
Lines 71 to 72 in 0bf3483
I get 2 compilation errors :
.pio\libdeps\adafruit_feather_m0\Adafruit PN532\Adafruit_PN532.cpp:957:28: error: invalid conversion from 'int8_t*' {aka 'signed char*'} to 'const byte*' {aka 'const unsigned char*'} [-fpermissive]
For compilation to succeed, I forced conversion to (const uint8_t*) for _uid and _key when calling PrintHex here :
Adafruit-PN532/Adafruit_PN532.cpp
Lines 881 to 888 in 0bf3483
With the change :
Not sure how to contribute / make a PR (code of conduct link in readme is broken)
and not even sure this is the proper way to solve this issue anyway.
Regards
Jean-Sébastien
The text was updated successfully, but these errors were encountered: