Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Buffer
Fork of BufferedSerial by
Diff: BufferedSerial.cpp
- Revision:
- 8:506247a040bc
- Parent:
- 7:6fa214b41d73
- Child:
- 10:9ee15ae3d1a3
diff -r 6fa214b41d73 -r 506247a040bc BufferedSerial.cpp
--- a/BufferedSerial.cpp Fri Jan 02 03:47:26 2015 +0000
+++ b/BufferedSerial.cpp Sun Jan 04 22:15:53 2015 +0000
@@ -24,7 +24,7 @@
#include <stdarg.h>
BufferedSerial::BufferedSerial(PinName tx, PinName rx, const char* name)
- : SERIAL_BASE(tx, rx), _rxbuf(BUFFEREDSERIAL_MAX_BUFFER_SIZE), _txbuf(BUFFEREDSERIAL_MAX_BUFFER_SIZE)
+ : SERIAL_BASE(tx, rx) , _rxbuf(2*BUFFEREDSERIAL_MAX_BUFFER_SIZE), _txbuf(2*BUFFEREDSERIAL_MAX_BUFFER_SIZE)
{
SERIAL_BASE::attach(this, &BufferedSerial::rxIrq, Serial::RxIrq);
