mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Serial, flush is not multitask safe.
This commit is contained in:
parent
3740adc947
commit
901f973100
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue