nfc: Be explicit about using manual auth method when using auto unlock

This commit is contained in:
Yukai Li
2022-10-07 00:58:05 -06:00
parent 1c2e35d930
commit f1b2327b8a

View File

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