[FL-2470, FL-2385, FL-2411] NFC fixes (#1138)
* mifare classic: increase data exchange timeout * nfc: exit from app if can't parse file * furi_hal_nfc: allow to switch context during detect Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		@@ -169,11 +169,16 @@ int32_t nfc_app(void* p) {
 | 
			
		||||
    char* args = 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);
 | 
			
		||||
    if((*args != '\0')) {
 | 
			
		||||
        if(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, NfcSceneEmulateUid);
 | 
			
		||||
            // Exit app
 | 
			
		||||
            view_dispatcher_stop(nfc->view_dispatcher);
 | 
			
		||||
        }
 | 
			
		||||
    } else {
 | 
			
		||||
        scene_manager_next_scene(nfc->scene_manager, NfcSceneStart);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user