We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97a5db commit 794669fCopy full SHA for 794669f
cores/arduino/Serial.cpp
@@ -75,6 +75,8 @@ void UART::begin(unsigned long baudrate, uint16_t config) {
75
void UART::begin(unsigned long baudrate) {
76
if (_serial == NULL) {
77
_serial = new mbed::UnbufferedSerial(tx, rx, baudrate);
78
+ } else {
79
+ _serial->baud(baudrate);
80
}
81
if (rts != NC) {
82
_serial->set_flow_control(mbed::SerialBase::Flow::RTSCTS, rts, cts);
0 commit comments