nfc: Move captured MFUL auth data from worker to device data

This commit is contained in:
Yukai Li
2022-10-10 22:25:42 -06:00
parent 543cdcb51b
commit e89741e434
5 changed files with 3 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ bool nfc_scene_mf_ultralight_unlock_auto_worker_callback(NfcWorkerEvent event, v
Nfc* nfc = context;
if(event == NfcWorkerEventMfUltralightPwdAuth) {
MfUltralightAuth* auth = nfc_worker_get_event_data(nfc->worker);
MfUltralightAuth* auth = &nfc->dev->dev_data.mf_ul_auth;
memcpy(nfc->byte_input_store, auth->pwd.raw, sizeof(auth->pwd.raw));
nfc->dev->dev_data.mf_ul_data.auth_method = MfUltralightAuthMethodManual;
}