8000
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 dd922a8 commit 5d8619bCopy full SHA for 5d8619b
micropython.js
@@ -19,9 +19,10 @@ function fixLineBreak(str) {
19
function extract(out) {
20
/*
21
* Message ($msg) will come out following this template:
22
- * "OK${msg}\x04\x04>"
+ * "OK${msg}\x04${err}\x04>"
23
+ * TODO: consider error handling
24
*/
- return out.slice(2, -3).trim()
25
+ return out.slice(2, -3)
26
}
27
28
class MicroPythonBoard {
@@ -206,7 +207,7 @@ class MicroPythonBoard {
206
207
await this.enter_raw_repl()
208
let output = await this.exec_raw(command)
209
await this.exit_raw_repl()
- const exists = extract(output) == '1'
210
+ const exists = output[2] == '1'
211
return Promise.resolve(exists)
212
213
0 commit comments