mirror of
https://github.com/miguelbalboa/rfid.git
synced 2024-06-08 01:03:01 +03:00
Merge pull request #551 from hktaskin/patch-1
Fix OpenUidBackdoor received data size.
This commit is contained in:
commit
d3bab30ad4
|
@ -1717,7 +1717,7 @@ bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
|
|||
byte validBits = 7; /* Our command is only 7 bits. After receiving card response,
|
||||
this will contain amount of valid response bits. */
|
||||
byte response[32]; // Card's response is written here
|
||||
byte received;
|
||||
byte received = sizeof(response);
|
||||
MFRC522::StatusCode status = PCD_TransceiveData(&cmd, (byte)1, response, &received, &validBits, (byte)0, false); // 40
|
||||
if(status != STATUS_OK) {
|
||||
if(logErrors) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user