From b6dfeac7ca6b7c0fd846d5fc5920f9c77b370cb5 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Tue, 11 Oct 2022 03:39:48 +0300 Subject: [PATCH] rfid fuzzer fix --- .../plugins/flipfrid/scene/flipfrid_scene_run_attack.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c b/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c index 585badf9d..3baa4ea49 100644 --- a/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c +++ b/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c @@ -532,15 +532,16 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont } break; case InputKeyBack: + context->is_attacking = false; + context->attack_step = 0; + counter = 0; + if(context->attack == FlipFridAttackLoadFileCustomUids) { furi_string_reset(context->data_str); stream_rewind(context->uids_stream); buffered_file_stream_close(context->uids_stream); } - context->attack_step = 0; - counter = 0; - context->is_attacking = false; furi_string_reset(context->notification_msg); notification_message(context->notify, &sequence_blink_stop); context->current_scene = SceneEntryPoint;