Fix check for normal boot (fix bootloop on flash)

This commit is contained in:
Willy-JL
2023-04-30 18:49:26 +01:00
parent b4d6717706
commit 32ed4d3b31
5 changed files with 15 additions and 3 deletions

View File

@@ -8,6 +8,10 @@
bool normal_boot = false;
void furi_hal_set_is_normal_boot(bool value) {
normal_boot = value;
}
bool furi_hal_is_normal_boot() {
return normal_boot;
}
@@ -32,7 +36,6 @@ void furi_hal_deinit_early() {
}
void furi_hal_init() {
normal_boot = true;
furi_hal_mpu_init();
furi_hal_clock_init();
furi_hal_console_init();