Skip to content

Commit

Permalink
Slow down every line. Tested OK
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 20, 2024
1 parent 67b1051 commit 3e1f315
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/webserial/webserial.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,8 @@ async function send_command(writer, cmd) {

// Slow down at the end of each line
const timeout = (ch === "\r")
? 2000
? 3000
: 10;
console.log({ch, timeout});

// Send the character
await writer.write(ch);
Expand Down

0 comments on commit 3e1f315

Please sign in to comment.