Skip to content

Commit 64bcd06

Browse files
committed
use micropython.js run
1 parent 324da86 commit 64bcd06

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

preload.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ const Serial = {
1818
return await board.close()
1919
},
2020
run: async (code) => {
21-
await board.exit_raw_repl()
22-
await board.enter_raw_repl()
23-
// Prevent executing empty string
24-
let result = await board.exec_raw(code || '#')
25-
await board.exit_raw_repl()
26-
return Promise.resolve(result)
21+
return board.run(code)
2722
},
2823
stop: async () => {
2924
await board.stop()

0 commit comments

Comments
 (0)