Skip to content

Commit

Permalink
Changed baud rate back to 9600 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinokaiz2 committed May 1, 2021
1 parent c82b13a commit df07317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ function openPort(portId, callback) {
// Constructing a new serialport every time means that hard resetting the ESP32, then opening
// and closing the connection will fix the problem.
port = new serialport(portId, { // TODO: baud configuration
autoOpen: false,
baudRate: 115200
autoOpen: false
});
port.on("open", () => onPortOpen(callback));
port.on("data", data => onPortData(data));
Expand Down

0 comments on commit df07317

Please sign in to comment.