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
|
// Check argument and run corresponding scene
|
||||||
if((*args != '\0') && nfc_device_load(&nfc->dev, p)) {
|
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);
|
scene_manager_next_scene(nfc->scene_manager, NfcSceneEmulateUid);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneStart);
|
scene_manager_next_scene(nfc->scene_manager, NfcSceneStart);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user