Skip to content

Commit

Permalink
Merge pull request #57 from arduino/bugfix/run-twice
Browse files Browse the repository at this point in the history
Bugfix/run twice
  • Loading branch information
murilopolese authored Jul 5, 2023
2 parents 4e890a6 + b44aa56 commit 4ba5831
Show file tree
Hide file tree
Showing 6 changed files with 994 additions and 586 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"post-set-shell": "npm config set script-shell bash",
"rebuild": "electron-rebuild",
"dev": "electron ./",
"dev": "electron --inspect ./",
"build": "npm run post-set-shell && electron-builder $(if [ $(uname -m) = arm64 ]; then echo --mac --x64; fi)",
"postinstall": "npm run post-set-shell && npm run rebuild"
},
Expand Down Expand Up @@ -38,7 +38,7 @@
"license": "MIT",
"dependencies": {
"about-window": "^1.15.2",
"micropython.js": "github:arduino/micropython.js#v1.4.0"
"micropython.js": "github:arduino/micropython.js#v1.4.1"
},
"engines": {
"node": "18"
Expand Down
9 changes: 4 additions & 5 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ const Serial = {
run: async (code) => {
return board.run(code)
},
stop: async () => {
await board.stop()
return Promise.resolve()
get_prompt: async () => {
return board.get_prompt()
},
exit_raw_repl: async () => {
await board.exit_raw_repl()
keyboard_interrupt: async () => {
await board.stop()
return Promise.resolve()
},
reset: async () => {
Expand Down
Loading

0 comments on commit 4ba5831

Please sign in to comment.