From db9983b3e593ef933a4306b8429634c9b5ec6802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Mon, 23 Jul 2018 11:10:48 +0200 Subject: [PATCH] Updated debug macros --- src/TypeDef.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/TypeDef.h b/src/TypeDef.h index d29f4b0b..d278fa8d 100644 --- a/src/TypeDef.h +++ b/src/TypeDef.h @@ -12,16 +12,24 @@ #ifdef KITELIB_DEBUG #define DEBUG_BEGIN(x) Serial.begin (x) #define DEBUG_PRINT(x) Serial.print (x) + #define DEBUG_PRINT_BIN(x) Serial.print (x, BIN) + #define DEBUG_PRINTLN_BIN(x) Serial.println (x, BIN) #define DEBUG_PRINT_DEC(x) Serial.print (x, DEC) + #define DEBUG_PRINTLN_DEC(x) Serial.println (x, DEC) #define DEBUG_PRINT_HEX(x) Serial.print (x, HEX) + #define DEBUG_PRINTLN_HEX(x) Serial.println (x, HEX) #define DEBUG_PRINTLN(x) Serial.println (x) #define DEBUG_PRINT_STR(x) Serial.print (F(x)) #define DEBUG_PRINTLN_STR(x) Serial.println (F(x)) #else #define DEBUG_BEGIN(x) #define DEBUG_PRINT(x) + #define DEBUG_PRINT_BIN(x) + #define DEBUG_PRINTLN_BIN(x) #define DEBUG_PRINT_DEC(x) + #define DEBUG_PRINTLN_DEC(x) #define DEBUG_PRINT_HEX(x) + #define DEBUG_PRINTLN_HEX(x) #define DEBUG_PRINTLN(x) #define DEBUG_PRINT_STR(x) #define DEBUG_PRINTLN_STR(x)