diff options
Diffstat (limited to 'lib/usbio.c')
-rw-r--r-- | lib/usbio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/usbio.c b/lib/usbio.c index 3010789..2c9fc9c 100644 --- a/lib/usbio.c +++ b/lib/usbio.c @@ -99,6 +99,14 @@ void usbio_task(void) USB_USBTask(); } +int8_t usbio_is_connected(void) +{ + if(stdin == &usb_stream) + return 1; + else + return 0; +} + int16_t usbio_bytes_received(void) { if(stdin == &usb_stream) |