mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 01:58:36 -07:00
Fix microel mizip bad reads (thanks @Leptopt1los!)
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
#include <nfc/nfc_device.h>
|
#include <nfc/nfc_device.h>
|
||||||
#include <nfc/helpers/nfc_util.h>
|
#include <nfc/helpers/nfc_util.h>
|
||||||
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
|
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#define TAG "Microel"
|
#define TAG "Microel"
|
||||||
#define KEY_LENGTH 6
|
#define KEY_LENGTH 6
|
||||||
@@ -173,7 +172,7 @@ static bool microel_read(Nfc* nfc, NfcDevice* device) {
|
|||||||
|
|
||||||
nfc_device_set_data(device, NfcProtocolMfClassic, data);
|
nfc_device_set_data(device, NfcProtocolMfClassic, data);
|
||||||
|
|
||||||
is_read = true;
|
is_read = mf_classic_is_card_read(data);
|
||||||
} while(false);
|
} while(false);
|
||||||
|
|
||||||
mf_classic_free(data);
|
mf_classic_free(data);
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
#include <nfc/nfc_device.h>
|
#include <nfc/nfc_device.h>
|
||||||
#include <nfc/helpers/nfc_util.h>
|
#include <nfc/helpers/nfc_util.h>
|
||||||
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
|
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#define TAG "MiZIP"
|
#define TAG "MiZIP"
|
||||||
#define KEY_LENGTH 6
|
#define KEY_LENGTH 6
|
||||||
@@ -126,7 +125,7 @@ static bool mizip_read(Nfc* nfc, NfcDevice* device) {
|
|||||||
|
|
||||||
nfc_device_set_data(device, NfcProtocolMfClassic, data);
|
nfc_device_set_data(device, NfcProtocolMfClassic, data);
|
||||||
|
|
||||||
is_read = true;
|
is_read = mf_classic_is_card_read(data);
|
||||||
} while(false);
|
} while(false);
|
||||||
|
|
||||||
mf_classic_free(data);
|
mf_classic_free(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user