aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/CDC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp
index 3dbf15d..3cfd1b7 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -129,7 +129,7 @@ void Serial_::end(void)
int Serial_::available(void)
{
if (peek_buffer >= 0) {
- return 1;
+ return 1 + USB_Available(CDC_RX);
}
return USB_Available(CDC_RX);
}