From 402fd4771bd66d983f1cd4adeccf1b0ec7fa52bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien?= Date: Tue, 26 Dec 2017 13:51:12 +0100 Subject: [PATCH] Aesthetic coding --- d_helper.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/d_helper.h b/d_helper.h index d2bcfa3..f619153 100644 --- a/d_helper.h +++ b/d_helper.h @@ -4,17 +4,18 @@ void handleTelnet(void); // ################# Macros for debugging ################ + #ifdef DEBUG_TELNET -#define DEBUG_PRINT(x) telnetClient.print(x) -#define DEBUG_PRINTF(x,y) telnetClient.printf(x,y) +#define DEBUG_PRINT(x) telnetClient.print(x) +#define DEBUG_PRINTF(x,y) telnetClient.printf(x,y) #define DEBUG_PRINT_WITH_FMT(x, fmt) telnetClient.print(x, fmt) -#define DEBUG_PRINTLN(x) telnetClient.println(x) +#define DEBUG_PRINTLN(x) telnetClient.println(x) #define DEBUG_PRINTLN_WITH_FMT(x, fmt) telnetClient.println(x, fmt) #else -#define DEBUG_PRINT(x) Serial.print(x) -#define DEBUG_PRINTF(x,y) Serial.printf(x,y) +#define DEBUG_PRINT(x) Serial.print(x) +#define DEBUG_PRINTF(x,y) Serial.printf(x,y) #define DEBUG_PRINT_WITH_FMT(x, fmt) Serial.print(x, fmt) -#define DEBUG_PRINTLN(x) Serial.println(x) +#define DEBUG_PRINTLN(x) Serial.println(x) #define DEBUG_PRINTLN_WITH_FMT(x, fmt) Serial.println(x, fmt) #endif