miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.77k stars 1.44k forks source link

fix default_keys example for avoid skipping first key #445

Closed porohkun closed 5 years ago

porohkun commented 5 years ago

mfrc522.PICC_ReadCardSerial() inside try_key returns false on first try_key call because there are no auth after mfrc522.PICC_ReadCardSerial() in the loop beginning.

Q A
Bug fix? yes
New feature? no
Doc update? no
BC breaks? no
Deprecations? no
porohkun commented 5 years ago

I think the reason why 2 jobs out of 20 failed is here: could not download cache dont know what to do with this.

Rotzbua commented 5 years ago

After rebuild the error is:

Error: Invalid value for "-b" / "--board": teensy20. Please search for board ID using platformio boards command

Seems this platformio dudes renamed the id :rage:

Everthing else builds so thanks for your fix :+1: