Skip to content

Commit

Permalink
[muxto] No spurious characters on reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed May 29, 2019
1 parent 871ca60 commit daa9b77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firmwares/MuxTO/MuxTO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ void loop() {
if (Serial.dtr() == 1) {
baudrate = Serial.baud();
Serial1.end();
Serial1.begin(baudrate, serial_mode);
serialNeedReconfiguration = false;
if (baudrate != 1200) {
Serial1.begin(baudrate, serial_mode);
serialNeedReconfiguration = false;
}
}
}
return;
Expand Down

0 comments on commit daa9b77

Please sign in to comment.