SubGhz: refactoring

This commit is contained in:
gid9798
2023-05-09 18:24:25 +03:00
parent a2fbe7fab8
commit 8ae2cb1d32
8 changed files with 75 additions and 52 deletions

View File

@@ -40,7 +40,7 @@ bool subghz_scene_save_success_on_event(void* context, SceneManagerEvent event)
} else {
subghz->decode_raw_state = SubGhzDecodeRawStateStart;
subghz->idx_menu_chosen = 0;
subghz_receiver_set_rx_callback(subghz->txrx->receiver, NULL, subghz);
subghz_txrx_set_rx_calback(subghz->txrx, NULL, subghz);
if(subghz_file_encoder_worker_is_running(subghz->decode_raw_file_worker_encoder)) {
subghz_file_encoder_worker_stop(subghz->decode_raw_file_worker_encoder);