Replaced debug serial routines

This commit is contained in:
Pascal Langer committed 2017-11-26 20:38:30 +01:00
1 parent 110378e3b4
commit a3c2628359
3 files changed
+2 -59

No files matched your search

+1 -1
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