From 4e9e9f32d702ddde3d8359884687b1e68a86c768 Mon Sep 17 00:00:00 2001 From: coreglitch Date: Fri, 5 Nov 2021 15:38:59 +0300 Subject: [PATCH] Use NFC device format when NFC app runs with args #810 --- applications/nfc/nfc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/nfc/nfc.c b/applications/nfc/nfc.c index 5bf788b9..8e5b7311 100755 --- a/applications/nfc/nfc.c +++ b/applications/nfc/nfc.c @@ -155,7 +155,11 @@ int32_t nfc_app(void* p) { // Check argument and run corresponding scene if((*args != '\0') && nfc_device_load(&nfc->dev, p)) { - scene_manager_next_scene(nfc->scene_manager, NfcSceneEmulateUid); + if(nfc->dev.format == NfcDeviceSaveFormatMifareUl) { + scene_manager_next_scene(nfc->scene_manager, NfcSceneEmulateMifareUl); + } else { + scene_manager_next_scene(nfc->scene_manager, NfcSceneEmulateUid); + } } else { scene_manager_next_scene(nfc->scene_manager, NfcSceneStart); }