Skip to content

Commit 4dc22df

Browse files
committed
Increase default delay to 450ms (to cope with devices in low speed 200ms connection interval mode reliably)
1 parent 662a4c0 commit 4dc22df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ ChangeLog:
9494
1.14: Ignore 'backspace' character when searching for newlines
9595
Remove fs/noACK from espruinoSendFile if not needed
9696
Longer log messages
97+
Increase default delay to 450ms (to cope with devices in low speed 200ms connection interval mode reliably)
9798
1.13: Ensure UART.eval waits for a newline for the result like the Puck.js lib (rather than just returning whatever there was)
9899
1.12: Handle cases where platform doesn't support connection type better (reject with error message)
99100
1.11: espruinoSendPacket now has a timeout (never timed out before)
@@ -1228,7 +1229,7 @@ To do:
12281229
/// Baud rate for Web Serial connections (Official Espruino devices use 9600, Espruino-on-ESP32/etc use 115200)
12291230
baud : 115200,
12301231
/// timeout (in ms) in .write when waiting for any data to return
1231-
timeoutNormal : 300,
1232+
timeoutNormal : 450, // 450ms is enough time that with a slower 200ms connection interval and a delay we should be ok
12321233
/// timeout (in ms) in .write/.eval when waiting for a newline
12331234
timeoutNewline : 10000,
12341235
/// timeout (in ms) to wait at most

0 commit comments

Comments
 (0)