From b17a53105994f346782f367127e93b1bd1525a5e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 19 Jun 2015 17:29:49 +0300 Subject: [PATCH] Fix an error when including debug.h from C --- cores/esp8266/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cores/esp8266/debug.h b/cores/esp8266/debug.h index cf0830d3e..7bdc247bd 100644 --- a/cores/esp8266/debug.h +++ b/cores/esp8266/debug.h @@ -5,7 +5,10 @@ // #define DEBUGV(...) ets_printf(__VA_ARGS__) #define DEBUGV(...) +#ifdef __cplusplus void hexdump(uint8_t *mem, uint32_t len, uint8_t cols = 16); - +#else +void hexdump(uint8_t *mem, uint32_t len, uint8_t cols); +#endif #endif//ARD_DEBUG_H