USB Device for NUCLEO-F103RB, STM32F103C8T6 and Maple Mini boards
Dependents: MapleMini_USBSerial STM32F103C8T6_USBKeyboard firstDelta STM32F103C8T6_USBSerial ... more
Fork of L152RE_USBDevice by
Diff: USBSerial/USBSerial.cpp
- Revision:
- 6:d0945750af57
- Parent:
- 1:80ab0d068708
- Child:
- 11:eeb3cbbaa996
diff -r d27e4c226965 -r d0945750af57 USBSerial/USBSerial.cpp --- a/USBSerial/USBSerial.cpp Sun Oct 14 15:08:52 2012 +0000 +++ b/USBSerial/USBSerial.cpp Thu Dec 20 17:05:37 2012 +0000 @@ -20,6 +20,8 @@ #include "USBSerial.h" int USBSerial::_putc(int c) { + if (!terminal_connected) + return 0; send((uint8_t *)&c, 1); return 1; }