From c3e31663ef116dc54def372d23c53ae360f150fa Mon Sep 17 00:00:00 2001 From: Der Skythe Date: Fri, 16 Sep 2022 23:08:45 +0400 Subject: [PATCH] Minor changes --- .../main/subghz/scenes/subghz_scene_receiver_config.c | 5 ++++- applications/main/subghz/subghz_history.c | 2 +- applications/main/subghz/views/receiver.c | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/main/subghz/scenes/subghz_scene_receiver_config.c b/applications/main/subghz/scenes/subghz_scene_receiver_config.c index 5e064e2f8..16d3ad939 100644 --- a/applications/main/subghz/scenes/subghz_scene_receiver_config.c +++ b/applications/main/subghz/scenes/subghz_scene_receiver_config.c @@ -2,6 +2,8 @@ #include +#define TAG "SubGhzSceneReceiverConfig" + enum SubGhzSettingIndex { SubGhzSettingIndexFrequency, SubGhzSettingIndexHopping, @@ -227,7 +229,8 @@ static void subghz_scene_receiver_config_set_hopping_running(VariableItem* item) subghz_setting_get_frequency_default_index(subghz->setting)); } - subghz->txrx->hopper_state = subghz->last_setting->hopping = hopping_value[index]; + subghz->txrx->hopper_state = hopping_value[index]; + subghz->last_setting->hopping = hopping_value[index]; } static void subghz_scene_receiver_config_var_list_enter_callback(void* context, uint32_t index) { diff --git a/applications/main/subghz/subghz_history.c b/applications/main/subghz/subghz_history.c index a4906eb73..24430305e 100644 --- a/applications/main/subghz/subghz_history.c +++ b/applications/main/subghz/subghz_history.c @@ -142,7 +142,7 @@ bool subghz_history_add_to_history( if((instance->code_last_hash_data == subghz_protocol_decoder_base_get_hash_data(decoder_base)) && ((furi_get_tick() - instance->last_update_timestamp) < 500)) { - //FURI_LOG_W(TAG, "Too short period for add"); + FURI_LOG_W(TAG, "Too short period for add"); instance->last_update_timestamp = furi_get_tick(); return false; } diff --git a/applications/main/subghz/views/receiver.c b/applications/main/subghz/views/receiver.c index 5736ceb7a..dd141084a 100644 --- a/applications/main/subghz/views/receiver.c +++ b/applications/main/subghz/views/receiver.c @@ -340,6 +340,7 @@ bool subghz_view_receiver_input(InputEvent* event, void* context) { return true; }); } else if(event->key == InputKeyLeft && event->type == InputTypeShort) { + //Config receiver subghz_receiver->callback(SubGhzCustomEventViewReceiverConfig, subghz_receiver->context); } else if(event->key == InputKeyOk && event->type == InputTypeShort) { with_view_model(