Skip to content

Commit

Permalink
Move setSlowWrite call from menuPortSelector to serial.open
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Sep 2, 2024
1 parent 1caba3d commit f80d0fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EspruinoTools
5 changes: 2 additions & 3 deletions js/core/menuPortSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,11 @@
}

Espruino.Core.Status.setStatus("Connecting...");
Espruino.Core.Serial.setSlowWrite(true); // force slow write to ensure things work ok
Espruino.Core.Serial.open(serialPort, function(cInfo) {
if (cInfo!==undefined && cInfo.error===undefined) {
console.log("Device found "+JSON.stringify(cInfo));
var name = nameFromConInfo(cInfo);
if (Espruino.Core.Env) {
var name = nameFromConInfo(cInfo);
if (Espruino.Core.Env) {
var boardData = Espruino.Core.Env.getBoardData();
if (!boardData.BOARD || !boardData.VERSION)
name += " (No response from board)";
Expand Down

0 comments on commit f80d0fc

Please sign in to comment.