Просмотр исходного кода

NFC: Accept non-parsed apps in Mifare DESFire. (#2041)

* NFC: Accept non-parsed apps in Mifare DESFire. Fixes #2040

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
Michael Huebler 3 лет назад
Родитель
Сommit
1b3156521c
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      lib/nfc/nfc_device.c

+ 5 - 1
lib/nfc/nfc_device.c

@@ -7,6 +7,7 @@
 #include <lib/nfc/protocols/nfc_util.h>
 #include <lib/nfc/protocols/nfc_util.h>
 #include <flipper_format/flipper_format.h>
 #include <flipper_format/flipper_format.h>
 
 
+#define TAG "NfcDevice"
 #define NFC_DEVICE_KEYS_FOLDER EXT_PATH("nfc/cache")
 #define NFC_DEVICE_KEYS_FOLDER EXT_PATH("nfc/cache")
 #define NFC_DEVICE_KEYS_EXTENSION ".keys"
 #define NFC_DEVICE_KEYS_EXTENSION ".keys"
 
 
@@ -627,7 +628,10 @@ bool nfc_device_load_mifare_df_data(FlipperFormat* file, NfcDevice* dev) {
                 *app_head = app;
                 *app_head = app;
                 app_head = &app->next;
                 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;
         parsed = true;
     } while(false);
     } while(false);