四轴飞控

Dependencies:   Buffer

Dependents:   withbufferserial_nrftst fly_v1

Fork of BufferedSerial by Sam Grove

Revision:
13:19fd7170f21e
Parent:
11:779304f9c5d2
--- a/BufferedSerial.cpp	Mon Mar 07 21:10:27 2016 +0000
+++ b/BufferedSerial.cpp	Sun Dec 10 02:16:33 2017 +0000
@@ -24,7 +24,7 @@
 #include <stdarg.h>
 
 BufferedSerial::BufferedSerial(PinName tx, PinName rx, uint32_t buf_size, uint32_t tx_multiple, const char* name)
-    : RawSerial(tx, rx) , _rxbuf(buf_size), _txbuf((uint32_t)(tx_multiple*buf_size))
+    : RawSerial(tx, rx, 115200) , _rxbuf(buf_size), _txbuf((uint32_t)(tx_multiple*buf_size))
 {
     RawSerial::attach(this, &BufferedSerial::rxIrq, Serial::RxIrq);
     this->_buf_size = buf_size;