Why was this a thing?

This commit is contained in:
Willy-JL
2023-07-26 14:55:20 +02:00
parent a14d6c53dc
commit c6564deef9
2 changed files with 10 additions and 10 deletions

View File

@@ -344,11 +344,11 @@ 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);
#ifdef FURI_NDEBUG
// Production
furi_hal_rtc_set_log_level(FuriLogLevelDefault);
furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
#endif
// #ifdef FURI_NDEBUG
// // Production
// furi_hal_rtc_set_log_level(FuriLogLevelDefault);
// furi_hal_rtc_reset_flag(FuriHalRtcFlagDebug);
// #endif
update_task_set_progress(update_task, UpdateTaskStageCompleted, 100);
success = true;
} while(false);

View File

@@ -2,12 +2,12 @@
#include <furi.h>
#ifdef FURI_NDEBUG
#define LFS_NO_ASSERT
#define LFS_ASSERT(x)
#else
// #ifdef FURI_NDEBUG
// #define LFS_NO_ASSERT
// #define LFS_ASSERT(x)
// #else
#define LFS_ASSERT furi_assert
#endif
// #endif
#define LFS_TAG "Lfs"