Skip to content

Commit

Permalink
NFC: Accept non-parsed apps in Mifare DESFire. (flipperdevices#2041)
Browse files Browse the repository at this point in the history
* NFC: Accept non-parsed apps in Mifare DESFire. Fixes flipperdevices#2040

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
  • Loading branch information
3 people authored and Dig03 committed Dec 31, 2022
1 parent e57acf2 commit 6354e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/nfc/nfc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <lib/nfc/protocols/nfc_util.h>
#include <flipper_format/flipper_format.h>

#define TAG "NfcDevice"
#define NFC_DEVICE_KEYS_FOLDER EXT_PATH("nfc/cache")
#define NFC_DEVICE_KEYS_EXTENSION ".keys"

Expand Down Expand Up @@ -627,7 +628,10 @@ bool nfc_device_load_mifare_df_data(FlipperFormat* file, NfcDevice* dev) {
*app_head = app;
app_head = &app->next;
}
if(!parsed_apps) break;
if(!parsed_apps) {
// accept non-parsed apps, just log a warning:
FURI_LOG_W(TAG, "Non-parsed apps found!");
}
}
parsed = true;
} while(false);
Expand Down

0 comments on commit 6354e66

Please sign in to comment.