mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 06:13:14 +03:00
Use NFC device format when NFC app runs with args #810
This commit is contained in:
parent
f8d3cc251c
commit
4e9e9f32d7
@ -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)) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user