seiichiro
34d8c92281
Co-authored-by: Stefan Brand <seiichiro@seiichiro0185.org> Reviewed-on: https://www.seiichiro0185.org/git/attnode/v3_firmware/pulls/6 Co-authored-by: seiichiro <seiichiro@seiichiro0185.org> Co-committed-by: seiichiro <seiichiro@seiichiro0185.org>
16 lines
327 B
C
16 lines
327 B
C
/*
|
|
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();
|
|
#else
|
|
#define DEBUG_PRINT(...)
|
|
#define DEBUG_PRINTLN(...)
|
|
#endif
|
|
|
|
#endif
|