Replaced debug serial routines

This commit is contained in:
Pascal Langer
2017-11-26 20:38:30 +01:00
parent 110378e3b4
commit a3c2628359
3 changed files with 2 additions and 59 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__); for(int i=0;buf[i] !=0; i++) StatusSerial_write(buf[i]);}
#define debug(msg, ...) {char buf[64]; sprintf(buf, msg "\r\n", ##__VA_ARGS__); Serial1.write(buf);}
#else
#define debug(...)
#undef SERIAL_DEBUG