From 0770578d494f73675eb1e295314c4b114d66aaf0 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 17 Jun 2024 02:16:20 +0300 Subject: [PATCH] fix incorrect state in decode raw exit causing keys to be not removed from history and showing up in Read menu after exit from decode raw --- applications/main/subghz/scenes/subghz_scene_decode_raw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/main/subghz/scenes/subghz_scene_decode_raw.c b/applications/main/subghz/scenes/subghz_scene_decode_raw.c index 85a524117..331c7c704 100644 --- a/applications/main/subghz/scenes/subghz_scene_decode_raw.c +++ b/applications/main/subghz/scenes/subghz_scene_decode_raw.c @@ -207,6 +207,8 @@ bool subghz_scene_decode_raw_on_event(void* context, SceneManagerEvent event) { subghz_txrx_set_rx_callback(subghz->txrx, NULL, subghz); + subghz_rx_key_state_set(subghz, SubGhzRxKeyStateIDLE); + if(subghz_file_encoder_worker_is_running(subghz->decode_raw_file_worker_encoder)) { subghz_file_encoder_worker_stop(subghz->decode_raw_file_worker_encoder); }