Fix critical boot modes (dfu / recovery)

This commit is contained in:
Willy-JL
2023-04-13 02:14:03 +01:00
parent 54e3941272
commit 1609f3c500
13 changed files with 28 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
#include <flipper_format/flipper_format.h>
void namechanger_on_system_start() {
if(furi_hal_rtc_get_boot_mode() != FuriHalRtcBootModeNormal) {
if(!furi_hal_is_normal_boot()) {
FURI_LOG_W(TAG, "NameChangerSRV load skipped. Device is in special startup mode.");
} else {
Storage* storage = furi_record_open(RECORD_STORAGE);