Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubGHz save settings version 2 #77

Merged
merged 14 commits into from
Sep 28, 2022
Prev Previous commit
close file
  • Loading branch information
xMasterX committed Sep 28, 2022
commit b934c41ed04a305b6895709d8a1f8a278ab1f03a
2 changes: 2 additions & 0 deletions applications/main/subghz/subghz_last_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void subghz_last_settings_load(SubGhzLastSettings* instance, size_t preset_count
}
}

flipper_format_file_close(fff_data_file);
flipper_format_free(fff_data_file);
furi_record_close(RECORD_STORAGE);
}
Expand Down Expand Up @@ -96,6 +97,7 @@ bool subghz_last_settings_save(SubGhzLastSettings* instance) {
FURI_LOG_E(TAG, "Error save file %s", SUBGHZ_LAST_SETTINGS_PATH);
}

flipper_format_file_close(file);
flipper_format_free(file);
furi_record_close(RECORD_STORAGE);

Expand Down