mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 10:51:54 +03:00
Properly reset the NFC device data
This commit is contained in:
parent
9e3868887c
commit
830e202bb1
@ -3,6 +3,8 @@
|
||||
|
||||
void nfc_scene_file_select_on_enter(void* context) {
|
||||
Nfc* nfc = context;
|
||||
nfc_device_data_clear(&nfc->dev->dev_data);
|
||||
|
||||
// Process file_select return
|
||||
nfc_device_set_loading_callback(nfc->dev, nfc_show_loading_popup, nfc);
|
||||
if(!furi_string_size(nfc->dev->load_path)) {
|
||||
|
@ -1631,6 +1631,9 @@ void nfc_device_data_clear(NfcDeviceData* dev_data) {
|
||||
} else if(dev_data->protocol == NfcDeviceProtocolEMV) {
|
||||
memset(&dev_data->emv_data, 0, sizeof(EmvData));
|
||||
}
|
||||
|
||||
furi_string_reset(dev_data->parsed_data);
|
||||
|
||||
memset(&dev_data->nfc_data, 0, sizeof(FuriHalNfcDevData));
|
||||
dev_data->protocol = NfcDeviceProtocolUnknown;
|
||||
furi_string_reset(dev_data->parsed_data);
|
||||
|
Loading…
Reference in New Issue
Block a user