Skip to content
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

Compilation warning becomes an error with esp32 #4

Open
fabianoriccardi opened this issue May 7, 2018 · 0 comments
Open

Compilation warning becomes an error with esp32 #4

fabianoriccardi opened this issue May 7, 2018 · 0 comments

Comments

@fabianoriccardi
Copy link

Hi everyone,
while I was compiling the example on ESP32-Arduino (updated to the latest version), I got the following error:

C:\Users\fabiu\workspace_arduino\libraries\MFRC522-I2C-Library-master\MFRC522_I2C.cpp: In member function 'byte MFRC522::PCD_CommunicateWithPICC(byte, byte, byte*, byte, byte*, byte*, byte*, byte, bool)':

C:\Users\fabiu\workspace_arduino\libraries\MFRC522-I2C-Library-master\MFRC522_I2C.cpp:451:20: error: '_validBits' may be used uninitialized in this function [-Werror=maybe-uninitialized]

   if (*backLen < 2 || _validBits != 0) {

                    ^

cc1plus.exe: some warnings being treated as errors

It's very eary to solve, you can set _validBits to 0 in the definition. Could you integrated the modification in the "official" code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant