8000 Use `chunk_sleep` to write to the board · arduino/micropython.js@728c2d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 728c2d8

Browse files
committed
Use chunk_sleep to write to the board
1 parent 43cc631 commit 728c2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class MicroPythonBoard {
172172
for (let i = 0; i < command.length; i += this.chunk_size) {
173173
const slice = Buffer.from(command.slice(i, i+this.chunk_size))
174174
await this.serial.write(slice)
175-
await sleep(10)
175+
await sleep(this.chunk_sleep)
176176
}
177177
// Execute
178178
await this.serial.write(Buffer.from(`\x04`))

0 commit comments

Comments
 (0)
0