summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsommersoft <sommersoft@users.noreply.github.com>2018-03-26 08:14:37 -0500
committerGitHub <noreply@github.com>2018-03-26 08:14:37 -0500
commit9bd55cf4c7af0d75cd678d9c9b15601d5b7b768d (patch)
tree6f05d0c489de4ad6cac76dfada9bb1531c6cc981
parent23009fdd6343d9536ae644faca27be5a253aa08e (diff)
minor cleanup
-rw-r--r--ports/atmel-samd/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/atmel-samd/usb.c b/ports/atmel-samd/usb.c
index 0d0a7a293..fd939e22d 100644
--- a/ports/atmel-samd/usb.c
+++ b/ports/atmel-samd/usb.c
@@ -241,7 +241,7 @@ bool usb_bytes_available(void) {
// Check if the buffer has data, but not enough
// space to hold another read.
if (usb_rx_count > USB_RX_BUF_SIZE - CDC_BULKOUT_SIZE) {
- return usb_rx_count > 0;
+ return true;
}
// Buffer has enough room
if (cdc_enabled() && !pending_read) {