File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let stdout_print = (stdout) => {
11
11
stdout_text = stdout_text . replace ( 'mpjsendline' , '' ) ;
12
12
stdout_ready = true ;
13
13
//console.log(stdout_text);
14
- }
14
+ }
15
15
}
16
16
global . mpjsPrintStdout = stdout_print ;
17
17
global . formatString = ( object ) => object !== undefined ? JSON . stringify ( object ) : null
@@ -94,6 +94,7 @@ module.exports = (async () => {
94
94
stdout_ready = false ;
95
95
code += "\nprint('mpjsendline')" ;
96
96
if ( global . promiseWaitInterval ) await wait_exist ( ( ) => ! global . promiseWaitInterval ) ;
97
+ console . log ( code ) ;
97
98
do_str ( code ) ;
98
99
await wait_exist ( ( ) => stdout_ready ) ;
99
100
return stdout_text ;
@@ -110,7 +111,7 @@ module.exports = (async () => {
110
111
}
111
112
return await methods . do_str ( pyjs ) ;
112
113
}
113
- methods . register_module = async ( module , code ) {
114
+ methods . register_module = async ( module , code ) => {
114
115
if ( ! pyjs_initiated ) return pyjs += '\n' + await methods . do_str ( code , module , false ) ;
115
116
return await methods . do_str ( code , module , true ) ;
116
117
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " micropython" ,
3
- "version" : " 1.1.4 " ,
3
+ "version" : " 1.1.5 " ,
4
4
"description" : " A WASM module built from the official MicroPython port" ,
5
5
"main" : " index.js" ,
6
6
"directories" : {
You can’t perform that action at this time.
0 commit comments