You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
338 B
10 lines
338 B
2 years ago
|
#ifndef DEBUG_PRINTF_H_
|
||
|
#define DEBUG_PRINTF_H_
|
||
|
|
||
|
// Make a safe call to Serial where it checks if the object is valid first. This allows your
|
||
|
// program to work even when no USB serial is connected. Printing to the Serial object when
|
||
|
// no valid connection is present will crash the CPU.
|
||
|
#define DEBUG_PRINT(x) {if (Serial) {x;}}
|
||
|
|
||
|
#endif
|