2020-12-20 10:48:23 +00:00
|
|
|
/*
|
|
|
|
DebugUtils.h - Simple debugging utilities.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DEBUGUTILS_H
|
|
|
|
#define DEBUGUTILS_H
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
#define DEBUG_PRINT(...) Serial.print(__VA_ARGS__); Serial.flush();
|
|
|
|
#define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__); Serial.flush();
|
2021-07-09 16:51:22 +00:00
|
|
|
#define DEBUG_PRINTARR(...) for (uint8_t i=0; i<(sizeof(__VA_ARGS__)/sizeof(__VA_ARGS__[0])); i++) { Serial.print(__VA_ARGS__[i], HEX); Serial.print(" ");}; Serial.flush();
|
2020-12-20 10:48:23 +00:00
|
|
|
#else
|
|
|
|
#define DEBUG_PRINT(...)
|
|
|
|
#define DEBUG_PRINTLN(...)
|
2021-07-09 16:51:22 +00:00
|
|
|
#define DEBUG_PRINTARR(...)
|
2020-12-20 10:48:23 +00:00
|
|
|
#endif
|
|
|
|
|
2021-07-09 16:51:22 +00:00
|
|
|
#endif
|