From 74e84da571a3f30f3df502f3013771380448394c Mon Sep 17 00:00:00 2001 From: Isaac Aronson Date: Mon, 31 Mar 2025 13:11:02 -0500 Subject: [PATCH] Remove NDEBUG guard on cycle counter functions --- include/global.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/global.h b/include/global.h index 06bfc99a6f..a6e494f03a 100644 --- a/include/global.h +++ b/include/global.h @@ -131,7 +131,7 @@ #define FEATURE_FLAG_ASSERT(flag, id) STATIC_ASSERT(flag > TEMP_FLAGS_END || flag == 0, id) -#if !(defined (NDEBUG)) || DEBUG_AI_DELAY_TIMER +// NOTE: This uses hardware timers 2 and 3; this will not work during active link connections or with the eReader static inline void CycleCountStart() { REG_TM2CNT_H = 0; @@ -154,7 +154,6 @@ static inline u32 CycleCountEnd() // return result return REG_TM2CNT_L | (REG_TM3CNT_L << 16u); } -#endif struct Coords8 {