1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 04:41:26 +04:00

FuriHal: RTC register reset API. New factory reset routine that wipes all RTC backup registers content. (#3288)

This commit is contained in:
あく
2023-12-12 15:12:57 +00:00
committed by GitHub
parent e2e3663524
commit 90cb1c4f2e
10 changed files with 33 additions and 20 deletions

View File

@@ -343,7 +343,7 @@ 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(FuriHalRtcFlagFactoryReset);
furi_hal_rtc_set_flag(FuriHalRtcFlagStorageFormatInternal);
#ifdef FURI_NDEBUG
// Production
furi_hal_rtc_set_log_level(FuriLogLevelDefault);