From d911e4ed01f5c6ea2396a57e98f69eaedf2031e8 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Wed, 17 Jun 2026 17:31:14 +0200 Subject: [PATCH] Create macro for easy toggle --- Core/Inc/main.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Inc/main.h b/Core/Inc/main.h index 8f472c0..63ab89a 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -24,6 +24,12 @@ extern "C" { #endif +#ifdef DEBUG +#define DEBUG_PRINT(x) ITM_Print(x) +#else +#define DEBUG_PRINT(x) +#endif + /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "canlog.h"