Skip to content

Commit

Permalink
USB CDC available() method returns correct number of bytes in buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed May 30, 2014
1 parent ddbb6b3 commit 6914af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/CDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6914af0

Please sign in to comment.