mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
sorry, i added "Mod:", and did fbt format
This commit is contained in:
parent
f429d14ab5
commit
b7bdc4c985
3 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue