File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -110,26 +110,14 @@ class MicroPythonBoard {
110
110
}
111
111
112
112
follow ( options ) {
113
- const { timeout = null , data_consumer = false } = options || { }
113
+ const { timeout = null } = options || { }
114
114
return new Promise ( async ( resolve , reject ) => {
115
115
// wait for normal output
116
116
const data = await this . read_until ( {
117
117
ending : Buffer . from ( `\x04` ) ,
118
118
timeout : timeout
119
119
} )
120
- // TODO: Slice out the EOF
121
- // console.log('normal output:', data)
122
120
resolve ( data )
123
-
124
- // // wait for error output
125
- // const data_err = await this.read_until({
126
- // ending: Buffer.from(`\x04`),
127
- // timeout: timeout
128
- // })
129
- // // TODO: Slice out the EOF
130
- // console.log('error output:', data_err)
131
- //
132
- // resolve([data, data_err])
133
121
} )
134
122
}
135
123
@@ -217,11 +205,6 @@ class MicroPythonBoard {
217
205
return Promise . reject ( )
218
206
}
219
207
220
- // TODO: When implementing command line
221
- // fs_get() {
222
- //
223
- // }
224
-
225
208
async fs_put ( src , dest ) {
226
209
if ( src ) {
227
210
const content = fs . readFileSync ( path . resolve ( src ) )
You can’t perform that action at this time.
0 commit comments