From 4f7e85c1a494d7cd8fb637ba2584aacaa241df59 Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 24 Apr 2020 08:05:56 -0700 Subject: [PATCH] cleanup serial instanciation on boards where we might not use it --- src/configuration.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/configuration.h b/src/configuration.h index 6c474c92d..25a4e25d7 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -46,9 +46,6 @@ along with this program. If not, see . //#define USE_JTAG #endif -#define DEBUG_PORT Serial // Serial debug port -#define SERIAL_BAUD 921600 // Serial debug baud rate - #define REQUIRE_RADIO true // If true, we will fail to start if the radio is not found #define xstr(s) str(s) @@ -225,6 +222,8 @@ along with this program. If not, see . // DEBUG // ----------------------------------------------------------------------------- +#define SERIAL_BAUD 921600 // Serial debug baud rate + #ifdef NO_ESP32 #define USE_SEGGER #endif @@ -232,6 +231,8 @@ along with this program. If not, see . #include "SEGGER_RTT.h" #define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__) #else +#define DEBUG_PORT Serial // Serial debug port + #ifdef DEBUG_PORT #define DEBUG_MSG(...) DEBUG_PORT.printf(__VA_ARGS__) #else