From 3ea01f841310c3e7569dc865d123e7c0aa50edff Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sun, 11 Sep 2022 03:29:21 +0300 Subject: [PATCH] fix broken save --- applications/subbrute/scene/subbrute_scene_run_attack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/subbrute/scene/subbrute_scene_run_attack.c b/applications/subbrute/scene/subbrute_scene_run_attack.c index 18f6fb80b..4b4507882 100644 --- a/applications/subbrute/scene/subbrute_scene_run_attack.c +++ b/applications/subbrute/scene/subbrute_scene_run_attack.c @@ -172,8 +172,6 @@ void subbrute_send_packet_parsed(SubBruteState* context) { stream_clean(context->stream); stream_write_string(context->stream, context->flipper_format_string); - - subbrute_emit(context); } void subbrute_send_packet(SubBruteState* context) { @@ -181,6 +179,7 @@ void subbrute_send_packet(SubBruteState* context) { // subbrute_send_raw_packet(context); //} else { subbrute_send_packet_parsed(context); + subbrute_emit(context); //} string_clear(context->flipper_format_string); } @@ -285,6 +284,8 @@ void subbrute_scene_run_attack_on_event(SubBruteEvent event, SubBruteState* cont break; case InputKeyUp: if(!context->is_attacking) { + subbrute_send_packet_parsed(context); + string_clear(context->flipper_format_string); toSave = true; context->current_scene = SceneSaveName; }