Skip to content

Commit 7ccce3e

Browse files
committed
Merge branch 'dev' into release
2 parents e88e224 + 9697709 commit 7ccce3e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

applications/main/subghz/scenes/subghz_scene_signal_settings.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void subghz_scene_signal_settings_on_enter(void* context) {
155155
counter_mode = 0xff;
156156
uint8_t mode_count = 1;
157157

158-
// Open file and check is it contains allowed protocols and CounterMode variable - if not then CcounterMode will stay 0xff
158+
// Open file and check is it contains allowed protocols and CounterMode variable - if not then CounterMode will stay 0xff
159159
// if file contain allowed protocol but not contain CounterMode value then setup default CounterMode value = 0 and available CounterMode count for this protocol
160160
// if file contain CounterMode value then load it
161161
if(!flipper_format_file_open_existing(fff_data_file, file_path)) {
@@ -410,6 +410,13 @@ void subghz_scene_signal_settings_on_exit(void* context) {
410410
flipper_format_file_close(fff_data_file);
411411
flipper_format_free(fff_data_file);
412412
furi_record_close(RECORD_STORAGE);
413+
414+
// we need reload file after editing when we exit from Signal Settings menu.
415+
if(subghz_key_load(subghz, file_path, false)) {
416+
FURI_LOG_D(TAG, "Subghz file was successfully reloaded");
417+
} else {
418+
FURI_LOG_E(TAG, "Error reloading subghz file");
419+
}
413420
}
414421

415422
// Clear views

0 commit comments

Comments
 (0)