USB device stack, fixes for USBSerial, lightweight without malloc (RTOS ready)
Fork of USBDevice by
Diff: USBSerial/USBSerial.cpp
- Revision:
- 23:c7639faed2eb
- Parent:
- 11:eeb3cbbaa996
--- a/USBSerial/USBSerial.cpp Wed Apr 02 21:00:41 2014 +0100 +++ b/USBSerial/USBSerial.cpp Mon Apr 28 12:15:41 2014 +0000 @@ -67,3 +67,7 @@ uint8_t USBSerial::available() { return buf.available(); } + +bool USBSerial::connected() { + return terminal_connected; +}