test

Dependencies:   Buffer

Fork of BufferedSerial by Sam Grove

Revision:
8:506247a040bc
Parent:
7:6fa214b41d73
Child:
10:9ee15ae3d1a3
--- 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);