Using Serial for debug

This commit is contained in:
Pascal Langer
2017-11-26 20:58:36 +01:00
parent 84d7986353
commit 5cb2326ea7
2 changed files with 3 additions and 3 deletions

View File

@@ -333,7 +333,7 @@ enum FailSafeMode {
//Status messages
#if defined(STM32_BOARD) && defined (SERIAL_DEBUG)
#define debug(msg, ...) {char buf[64]; sprintf(buf, msg "\r\n", ##__VA_ARGS__); Serial1.write(buf);}
#define debug(msg, ...) {char buf[64]; sprintf(buf, msg "\r\n", ##__VA_ARGS__); Serial.write(buf);}
#else
#define debug(...)
#undef SERIAL_DEBUG