From b7bdc4c9850acbeb738ee0a064b772666029ed4e Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 12 Oct 2022 05:15:45 +0300 Subject: [PATCH] sorry, i added "Mod:", and did fbt format --- .../main/subghz/scenes/subghz_scene_frequency_analyzer.c | 6 ++---- applications/main/subghz/scenes/subghz_scene_receiver.c | 5 +++-- applications/main/subghz/subghz_last_settings.c | 5 ++++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/applications/main/subghz/scenes/subghz_scene_frequency_analyzer.c b/applications/main/subghz/scenes/subghz_scene_frequency_analyzer.c index 50ccfc3d4..1a0992f94 100644 --- a/applications/main/subghz/scenes/subghz_scene_frequency_analyzer.c +++ b/applications/main/subghz/scenes/subghz_scene_frequency_analyzer.c @@ -49,9 +49,7 @@ void subghz_scene_frequency_analyzer_on_exit(void* context) { SubGhz* subghz = context; notification_message(subghz->notifications, &sequence_reset_rgb); - subghz->last_settings->frequency_analyzer_feedback_level = subghz_frequency_analyzer_feedback_level( - subghz->subghz_frequency_analyzer, - 0, - false); + subghz->last_settings->frequency_analyzer_feedback_level = + subghz_frequency_analyzer_feedback_level(subghz->subghz_frequency_analyzer, 0, false); subghz_last_settings_save(subghz->last_settings); } diff --git a/applications/main/subghz/scenes/subghz_scene_receiver.c b/applications/main/subghz/scenes/subghz_scene_receiver.c index f17526b2c..87a7c9552 100644 --- a/applications/main/subghz/scenes/subghz_scene_receiver.c +++ b/applications/main/subghz/scenes/subghz_scene_receiver.c @@ -47,11 +47,12 @@ static void subghz_scene_receiver_update_statusbar(void* context) { modulation_str = furi_string_alloc(); #ifdef SUBGHZ_EXT_PRESET_NAME - if(subghz_history_get_last_index(subghz->txrx->history)> 0) { + if(subghz_history_get_last_index(subghz->txrx->history) > 0) { subghz_get_frequency_modulation(subghz, frequency_str, modulation_str); } else { subghz_get_frequency_modulation(subghz, frequency_str, NULL); - furi_string_printf(modulation_str, "%s", furi_string_get_cstr(subghz->txrx->preset->name)); + furi_string_printf( + modulation_str, "Mod: %s", furi_string_get_cstr(subghz->txrx->preset->name)); } #else subghz_get_frequency_modulation(subghz, frequency_str, modulation_str); diff --git a/applications/main/subghz/subghz_last_settings.c b/applications/main/subghz/subghz_last_settings.c index f825731fc..bf3638908 100644 --- a/applications/main/subghz/subghz_last_settings.c +++ b/applications/main/subghz/subghz_last_settings.c @@ -134,7 +134,10 @@ bool subghz_last_settings_save(SubGhzLastSettings* instance) { break; } if(!flipper_format_insert_or_update_uint32( - file, SUBGHZ_LAST_SETTING_FIELD_FREQUENCY_ANALYZER_FEEDBACK_LEVEL, &instance->frequency_analyzer_feedback_level, 1)) { + file, + SUBGHZ_LAST_SETTING_FIELD_FREQUENCY_ANALYZER_FEEDBACK_LEVEL, + &instance->frequency_analyzer_feedback_level, + 1)) { break; } #ifdef SUBGHZ_SAVE_DETECT_RAW_SETTING