Fix microel mizip bad reads (thanks @Leptopt1los!)

This commit is contained in:
Willy-JL
2024-01-08 00:58:22 +00:00
parent a62fd52d00
commit 6af6388af2
2 changed files with 2 additions and 4 deletions

View File

@@ -3,7 +3,6 @@
#include <nfc/nfc_device.h>
#include <nfc/helpers/nfc_util.h>
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
#include <stdint.h>
#define TAG "Microel"
#define KEY_LENGTH 6
@@ -173,7 +172,7 @@ static bool microel_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true;
is_read = mf_classic_is_card_read(data);
} while(false);
mf_classic_free(data);

View File

@@ -3,7 +3,6 @@
#include <nfc/nfc_device.h>
#include <nfc/helpers/nfc_util.h>
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
#include <stdint.h>
#define TAG "MiZIP"
#define KEY_LENGTH 6
@@ -126,7 +125,7 @@ static bool mizip_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true;
is_read = mf_classic_is_card_read(data);
} while(false);
mf_classic_free(data);