Serial, flush is not multitask safe.

This commit is contained in:
Andrew J. Kroll 2013-06-10 18:17:37 -04:00
parent 3740adc947
commit 901f973100

View file

@ -28,7 +28,7 @@ void E_Notifyc(char c, int lvl) {
#else #else
USB_HOST_SERIAL.print(c, BYTE); USB_HOST_SERIAL.print(c, BYTE);
#endif #endif
USB_HOST_SERIAL.flush(); //USB_HOST_SERIAL.flush();
} }
void E_Notify(char const * msg, int lvl) { void E_Notify(char const * msg, int lvl) {
@ -54,13 +54,13 @@ void E_Notify(uint8_t b, int lvl) {
#else #else
USB_HOST_SERIAL.print(b, DEC); USB_HOST_SERIAL.print(b, DEC);
#endif #endif
USB_HOST_SERIAL.flush(); //USB_HOST_SERIAL.flush();
} }
void E_Notify(double d, int lvl) { void E_Notify(double d, int lvl) {
if (UsbDEBUGlvl < lvl) return; if (UsbDEBUGlvl < lvl) return;
USB_HOST_SERIAL.print(d); USB_HOST_SERIAL.print(d);
USB_HOST_SERIAL.flush(); //USB_HOST_SERIAL.flush();
} }
#ifdef DEBUG_USB_HOST #ifdef DEBUG_USB_HOST