8000 Bugfix examples by murilopolese · Pull Request #7 · arduino/micropython.js · GitHub
[go: up one dir, main page]

Skip to content
8000

Bugfix examples #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 22, 2023
Merged
Prev Previous commit
Next Next commit
Return output on execfile
  • Loading branch information
murilopolese committed Jun 15, 2023
commit dea5be397237c90219fb207ef9b1a658a0a14e85
7 changes: 3 additions & 4 deletions micropython.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,10 @@ class MicroPythonBoard {
if (filePath) {
const content = fs.readFileSync(path.resolve(filePath))
await this.enter_raw_repl()
const output = await this.exec_raw({
command: content
})
const output = await this.exec_raw({ command: content })
data_consumer(output)
return this.exit_raw_repl()
await this.exit_raw_repl()
return Promise.resolve(output)
}
return Promise.reject()
}
Expand Down
0