Skip to content

Commit b17a531

Browse files
committed
Fix an error when including debug.h from C
1 parent 66be67c commit b17a531

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/esp8266/debug.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
// #define DEBUGV(...) ets_printf(__VA_ARGS__)
66
#define DEBUGV(...)
77

8+
#ifdef __cplusplus
89
void hexdump(uint8_t *mem, uint32_t len, uint8_t cols = 16);
9-
10+
#else
11+
void hexdump(uint8_t *mem, uint32_t len, uint8_t cols);
12+
#endif
1013

1114
#endif//ARD_DEBUG_H

0 commit comments

Comments
 (0)