mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Disable deep sleep in debug builds (fixes debugger attach?) --nobuild
This commit is contained in:
@@ -165,12 +165,14 @@ static bool update_task_post_update(UpdateTask* update_task) {
|
||||
|
||||
CHECK_RESULT(lfs_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_set_log_level(FuriLogLevelNone);
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user