Skip to content

Commit 4ba5831

Browse files
authored
Merge pull request #57 from arduino/bugfix/run-twice
Bugfix/run twice
2 parents 4e890a6 + b44aa56 commit 4ba5831

File tree

6 files changed

+994
-586
lines changed

6 files changed

+994
-586
lines changed

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"post-set-shell": "npm config set script-shell bash",
99
"rebuild": "electron-rebuild",
10-
"dev": "electron ./",
10+
"dev": "electron --inspect ./",
1111
"build": "npm run post-set-shell && electron-builder $(if [ $(uname -m) = arm64 ]; then echo --mac --x64; fi)",
1212
"postinstall": "npm run post-set-shell && npm run rebuild"
1313
},
@@ -38,7 +38,7 @@
3838
"license": "MIT",
3939
"dependencies": {
4040
"about-window": "^1.15.2",
41-
"micropython.js": "github:arduino/micropython.js#v1.4.0"
41+
"micropython.js": "github:arduino/micropython.js#v1.4.1"
4242
},
4343
"engines": {
4444
"node": "18"

preload.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ const Serial = {
2121
run: async (code) => {
2222
return board.run(code)
2323
},
24-
stop: async () => {
25-
await board.stop()
26-
return Promise.resolve()
24+
get_prompt: async () => {
25+
return board.get_prompt()
2726
},
28-
exit_raw_repl: async () => {
29-
await board.exit_raw_repl()
27+
keyboard_interrupt: async () => {
28+
await board.stop()
3029
return Promise.resolve()
3130
},
3231
reset: async () => {

0 commit comments

Comments
 (0)