aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 9999ca8..1797ed6 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);
}