aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/CDC.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-05-30 10:54:14 +0200
committerCristian Maglie <c.maglie@bug.st>2014-05-30 10:54:14 +0200
commit8bef5cdf0392f6a3a13e0f8ead92efeebfcf5aac (patch)
treed6f97f073165b37d40d932f76535717824eb9878 /cores/arduino/CDC.cpp
parent2fd1c5b42898b8844a4e6ccea1be9f758e956bc7 (diff)
parent29b0b63d1c7d90e9c2559d110993c825ec1f5fa4 (diff)
Merge branch 'master' into HEAD
Diffstat (limited to 'cores/arduino/CDC.cpp')
-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);
}