From f65726b67b7d546737402f565df37b792ebc90b8 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 12 Aug 2024 03:27:48 +0200 Subject: [PATCH] Re-enable FURI_TRACE crash paths --- CHANGELOG.md | 1 + furi/core/check.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b584d948d..3ed76bb97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Services: - OFW: On SD insert load BT, Desktop, Dolphin, Expansion, Notification, Region files (by @gsurkov) - On SD insert also load Momentum settings, Asset Packs, FindMy Flipper, NameSpoof, SubGHz options, and migrate files (by @Willy-JL) +- Furi: Re-enabled `FURI_TRACE` since LFS removal frees DFU, will get better crash messages with source code path (by @Willy-JL) - OFW: RFID: Add GProxII support (by @BarTenderNZ) - OFW: iButton: Support ID writing (by @Astrrra) - OFW: FBT: Add `-Wundef` to compiler options (by @hedger) diff --git a/furi/core/check.h b/furi/core/check.h index 199b8b40f..f64bf17d4 100644 --- a/furi/core/check.h +++ b/furi/core/check.h @@ -21,9 +21,9 @@ extern "C" { #endif // When enabled will use file paths instead of "furi_check failed" -// #if !defined(FURI_RAM_EXEC) && !defined(FURI_DEBUG) -// #define __FURI_TRACE -// #endif +#if !defined(FURI_RAM_EXEC) && !defined(FURI_DEBUG) +#define __FURI_TRACE +#endif // Flags instead of pointers will save ~4 bytes on furi_assert and furi_check calls. #ifndef __FURI_TRACE