Set correct values for deepsleep on install

This commit is contained in:
Willy-JL
2024-01-26 23:05:29 +00:00
parent fc87dc5dd2
commit cb635ff2d2

View File

@@ -344,11 +344,13 @@ int32_t update_task_worker_flash_writer(void* context) {
furi_hal_rtc_set_boot_mode(FuriHalRtcBootModePostUpdate);
// Format LFS before restoring backup on next boot
furi_hal_rtc_set_flag(FuriHalRtcFlagStorageFormatInternal);
// #ifdef FURI_NDEBUG
// // Production
// furi_hal_rtc_set_log_level(FuriLogLevelDefault);
// furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
// #endif
#ifdef FURI_NDEBUG
// Production
// furi_hal_rtc_set_log_level(FuriLogLevelDefault);
furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
furi_hal_rtc_set_heap_track_mode(FuriHalRtcHeapTrackModeNone);
furi_hal_rtc_reset_flag(FuriHalRtcFlagLegacySleep);
#endif
update_task_set_progress(update_task, UpdateTaskStageCompleted, 100);
success = true;
} while(false);