SubGHz: Refactor last settings logic

This commit is contained in:
Willy-JL
2024-04-05 04:26:29 +01:00
parent 7413cd8a71
commit ff7cb37c45
7 changed files with 162 additions and 321 deletions

View File

@@ -104,14 +104,12 @@ void subghz_scene_read_raw_on_enter(void* context) {
if(subghz_rx_key_state_get(subghz) != SubGhzRxKeyStateBack) {
subghz_rx_key_state_set(subghz, SubGhzRxKeyStateIDLE);
#if SUBGHZ_LAST_SETTING_SAVE_PRESET
if(furi_string_empty(file_name)) {
subghz_txrx_set_preset_internal(
subghz->txrx,
subghz->last_settings->frequency,
subghz->last_settings->preset_index);
}
#endif
}
subghz_scene_read_raw_update_statusbar(subghz);