sorry, i added "Mod:", and did fbt format

This commit is contained in:
MX 2022-10-12 05:15:45 +03:00
parent f429d14ab5
commit b7bdc4c985
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
3 changed files with 9 additions and 7 deletions

View file

@ -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);
}

View file

@ -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);

View file

@ -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