From ece1192c7646cfe450e65b5401b161f1e8d5504b Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sun, 31 Mar 2019 13:32:42 +0200 Subject: [PATCH] Move default DEBUG_MODE from common_pre.h into common_defaults_post.h so it can be overridden. --- src/main/target/common_defaults_post.h | 4 ++++ src/main/target/common_pre.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/target/common_defaults_post.h b/src/main/target/common_defaults_post.h index f85d0d5aa6..221aa60cf6 100644 --- a/src/main/target/common_defaults_post.h +++ b/src/main/target/common_defaults_post.h @@ -20,6 +20,10 @@ // pg/max7456 +#ifndef DEBUG_MODE +#define DEBUG_MODE DEBUG_NONE +#endif + #ifdef USE_MAX7456 #ifndef MAX7456_CLOCK_CONFIG_DEFAULT #define MAX7456_CLOCK_CONFIG_DEFAULT MAX7456_CLOCK_CONFIG_OC diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index ff1001e5c2..4ba7d01ec7 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -29,7 +29,6 @@ //#pragma GCC diagnostic warning "-Wpadded" //#define SCHEDULER_DEBUG // define this to use scheduler debug[] values. Undefined by default for performance reasons -#define DEBUG_MODE DEBUG_NONE // change this to change initial debug mode #define I2C1_OVERCLOCK true #define I2C2_OVERCLOCK true