mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
Set correct values for deepsleep on install
This commit is contained in:
@@ -344,11 +344,13 @@ int32_t update_task_worker_flash_writer(void* context) {
|
|||||||
furi_hal_rtc_set_boot_mode(FuriHalRtcBootModePostUpdate);
|
furi_hal_rtc_set_boot_mode(FuriHalRtcBootModePostUpdate);
|
||||||
// Format LFS before restoring backup on next boot
|
// Format LFS before restoring backup on next boot
|
||||||
furi_hal_rtc_set_flag(FuriHalRtcFlagStorageFormatInternal);
|
furi_hal_rtc_set_flag(FuriHalRtcFlagStorageFormatInternal);
|
||||||
// #ifdef FURI_NDEBUG
|
#ifdef FURI_NDEBUG
|
||||||
// // Production
|
// Production
|
||||||
// furi_hal_rtc_set_log_level(FuriLogLevelDefault);
|
// furi_hal_rtc_set_log_level(FuriLogLevelDefault);
|
||||||
// furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
|
furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
|
||||||
// #endif
|
furi_hal_rtc_set_heap_track_mode(FuriHalRtcHeapTrackModeNone);
|
||||||
|
furi_hal_rtc_reset_flag(FuriHalRtcFlagLegacySleep);
|
||||||
|
#endif
|
||||||
update_task_set_progress(update_task, UpdateTaskStageCompleted, 100);
|
update_task_set_progress(update_task, UpdateTaskStageCompleted, 100);
|
||||||
success = true;
|
success = true;
|
||||||
} while(false);
|
} while(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user