[FL-3407] NFC: Mf Ultralight emulation optimization (#2847)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		
							parent
							
								
									906cca8f24
								
							
						
					
					
						commit
						e6b0494d4d
					
				@ -724,6 +724,8 @@ void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker) {
 | 
				
			|||||||
    emulator.auth_received_callback = nfc_worker_mf_ultralight_auth_received_callback;
 | 
					    emulator.auth_received_callback = nfc_worker_mf_ultralight_auth_received_callback;
 | 
				
			||||||
    emulator.context = nfc_worker;
 | 
					    emulator.context = nfc_worker;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    rfal_platform_spi_acquire();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    while(nfc_worker->state == NfcWorkerStateMfUltralightEmulate) {
 | 
					    while(nfc_worker->state == NfcWorkerStateMfUltralightEmulate) {
 | 
				
			||||||
        mf_ul_reset_emulation(&emulator, true);
 | 
					        mf_ul_reset_emulation(&emulator, true);
 | 
				
			||||||
        furi_hal_nfc_emulate_nfca(
 | 
					        furi_hal_nfc_emulate_nfca(
 | 
				
			||||||
@ -743,6 +745,8 @@ void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker) {
 | 
				
			|||||||
            emulator.data_changed = false;
 | 
					            emulator.data_changed = false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    rfal_platform_spi_release();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool nfc_worker_mf_get_b_key_from_sector_trailer(
 | 
					static bool nfc_worker_mf_get_b_key_from_sector_trailer(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user