-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ordered comparison of pointer with integer zero" error ArduinoIDE / ESP32 #632
Comments
Same problem here. OS version: Windows 11 |
Ich changes the following manually in MFRC522Extended.cpp: Line 824: if (backData && backLen && (*backLen > 0)) { Now it works for me. However, still I do not understand, what's changed in the last few month... |
Yeah, changed manually the code and now it passes, but my RFID module still doesnt recognize any RFID cards. Probably an hardware problem Anyway, thank you. |
In my case, I can read everything I want. I guess, in your case it is indeed an second problem somewhere else. |
Same problem here. Problem is with a NodeMCU Esp 32s. When i use the ESP32 Boardmanager 2.0.17 the problem does not exist. The Problem only exists with the newer ESP32 board packs like 3.0 or 3.0.1. Hope that helps a little bit to narrow down the problem.. =) |
I think this is happening because of the new IDF release |
Hey, I had the same issue, I fixed it modifying with Edit: on "MFRC522Extended.cpp" line 824 and 847 |
The pull request #625 solves this issue But it seems that the repository stoped his development, so no pull request are being approved and merged. So the alternatives are creating a fork with the updates, or use an existing fork |
Fixed warning : ordered comparison of pointer with integer zero preventing compilation on arduino-esp32 v3.x (issuehttps://github.com/miguelbalboa/issues/632 )
Step 1: Describe your environment
Step 2: Describe the problem
My ESP32 with MFRC522 worked well for a very long time. I put my work on hold for a few months and wanted to get back to it today. I pressed "verify" on the since the last work few month ago code and now the following error appears:
XYZ\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp: In member function 'MFRC522::StatusCode MFRC522Extended::TCL_Transceive(TagInfo*, byte*, byte, byte*, byte*)':
XYZ\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:824:34: error: ordered comparison of pointer with integer zero ('byte*' {aka 'unsigned char*'} and 'int')
824 | if (backData && (backLen > 0)) {
| ~~~~~~~~^~~
XYZ\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:847:42: error: ordered comparison of pointer with integer zero ('byte*' {aka 'unsigned char*'} and 'int')
847 | if (backData && (backLen > 0)) {
| ~~~~~~~~^~~
exit status 1
Compilation error: exit status 1
I did not yet connect the board to the USB port. If I do so, the same error comes. I de- and reinstalled the MFRC522 library but without success.
Affected file(s) or example(s):
Steps to reproduce:
Observed Results:
Expected Results:
Relevant Code:
I reduced my code to a minium:
Any idea, what could I try further? Thank you very much in advanced for your support!
The text was updated successfully, but these errors were encountered: