8000 Return output on `execfile` · arduino/micropython.js@dea5be3 · GitHub
[go: up one dir, main page]

Skip to content

Commit dea5be3

Browse files
committed
Return output on execfile
1 parent a971168 commit dea5be3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

micropython.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,10 @@ class MicroPythonBoard {
216216
if (filePath) {
217217
const content = fs.readFileSync(path.resolve(filePath))
218218
await this.enter_raw_repl()
219-
const output = await this.exec_raw({
220-
command: content
221-
})
219+
const output = await this.exec_raw({ command: content })
222220
data_consumer(output)
223-
return this.exit_raw_repl()
221+
await this.exit_raw_repl()
222+
return Promise.resolve(output)
224223
}
225224
return Promise.reject()
226225
}

0 commit comments

Comments
 (0)
0