From 28c8e09bcf50f4c8b0fa4f386fa449aba963a4a6 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Wed, 29 Sep 2021 18:58:30 +0200 Subject: [PATCH] Use config.h to define DEBUGS --- src/config/config.h | 7 +++++++ src/debug.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/config/config.h b/src/config/config.h index efd7934..b17cf73 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -5,8 +5,15 @@ /// Define Debug mode to add additional serial output //#define DEBUG_FINDA +/// Enable DEBUG_LOGIC to compile debugging and error messages (beware of code base size ;) ) for the logic layer //#define DEBUG_LOGIC +/// Enable DEBUG_LOGIC to compile debugging and error messages (beware of code base size ;) ) for the logic layer +//#define DEBUG_MODULES + +/// Enable DEBUG_HAL to compile debugging and error messages (beware of code base size ;) ) for the logic layer +//#define DEBUG_HAL + /// Wrangler for assorted compile-time configuration and constants. namespace config { diff --git a/src/debug.h b/src/debug.h index d84436e..3e6b6a0 100644 --- a/src/debug.h +++ b/src/debug.h @@ -2,7 +2,7 @@ #include /// Enable DEBUG_LOGIC to compile debugging and error messages (beware of code base size ;) ) for the logic layer -#define DEBUG_LOGIC +//#define DEBUG_LOGIC /// Enable DEBUG_LOGIC to compile debugging and error messages (beware of code base size ;) ) for the logic layer //#define DEBUG_MODULES @@ -36,6 +36,7 @@ extern const char modules[]; #else #define dbg_modules(x) /* */ #define dbg_modules_P(x) /* */ + #endif #if defined(DEBUG_HAL) && defined(__AVR__)