mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Spring cleaning
This commit is contained in:
@@ -138,17 +138,6 @@ static bool update_task_post_update(UpdateTask* update_task) {
|
||||
|
||||
CHECK_RESULT(int_backup_unpack(update_task->storage, furi_string_get_cstr(file_path)));
|
||||
|
||||
// Fix flags for production / development
|
||||
#ifdef FURI_DEBUG
|
||||
furi_hal_rtc_set_flag(FuriHalRtcFlagDebug);
|
||||
furi_hal_rtc_set_flag(FuriHalRtcFlagLegacySleep);
|
||||
#else
|
||||
furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
|
||||
furi_hal_rtc_reset_flag(FuriHalRtcFlagLegacySleep);
|
||||
furi_hal_rtc_set_log_level(FuriLogLevelNone);
|
||||
furi_hal_rtc_set_heap_track_mode(FuriHalRtcHeapTrackModeNone);
|
||||
#endif
|
||||
|
||||
if(update_task->state.groups & UpdateTaskStageGroupResources) {
|
||||
path_concat(
|
||||
furi_string_get_cstr(update_task->update_path),
|
||||
|
||||
@@ -343,7 +343,17 @@ int32_t update_task_worker_flash_writer(void* context) {
|
||||
furi_hal_rtc_set_boot_mode(FuriHalRtcBootModePostUpdate);
|
||||
// Clean up /int before restoring backup on next boot
|
||||
furi_hal_rtc_set_flag(FuriHalRtcFlagStorageFormatInternal);
|
||||
|
||||
#ifdef FURI_DEBUG
|
||||
// Development
|
||||
furi_hal_rtc_set_flag(FuriHalRtcFlagDebug);
|
||||
furi_hal_rtc_set_flag(FuriHalRtcFlagLegacySleep);
|
||||
#else
|
||||
// Production
|
||||
furi_hal_rtc_set_log_level(FuriLogLevelNone);
|
||||
furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
|
||||
furi_hal_rtc_reset_flag(FuriHalRtcFlagLegacySleep);
|
||||
furi_hal_rtc_set_heap_track_mode(FuriHalRtcHeapTrackModeNone);
|
||||
#endif
|
||||
update_task_set_progress(update_task, UpdateTaskStageCompleted, 100);
|
||||
success = true;
|
||||
} while(false);
|
||||
|
||||
Reference in New Issue
Block a user