nfc: Fix MFUL auth counter loading

This commit is contained in:
Yukai Li
2022-10-07 00:57:32 -06:00
parent 145aef96ac
commit 1c2e35d930
+2
View File
@@ -213,6 +213,8 @@ bool nfc_device_load_mifare_ul_data(FlipperFormat* file, NfcDevice* dev) {
uint32_t auth_counter;
if(!flipper_format_read_uint32(file, "Failed authentication attempts", &auth_counter, 1))
auth_counter = 0;
data->curr_authlim = auth_counter;
parsed = true;
} while(false);