We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c9862 commit 74c1927Copy full SHA for 74c1927
micropython.js
@@ -217,13 +217,14 @@ class MicroPythonBoard {
217
let output = await this.exec_raw({
218
command: `f=open('${dest}','w')\nw=f.write`
219
})
220
- for (let i = 0; i < content.length; i+=64) {
221
- let slice = content.slice(i, i+64)
+ await sleep(100)
+ for (let i = 0; i < content.length; i+=128) {
222
+ let slice = content.slice(i, i+128)
223
slice = slice.toString()
224
slice = slice.replace(/"""/g, `\\"\\"\\"`)
225
await this.serial.write(`w("""${slice}""")`)
226
await this.serial.write(`\x04`)
- await sleep(50)
227
228
}
229
return this.exit_raw_repl()
230
0 commit comments