Corrected the fakeConnect serial fallback, which was failing to complete steps
This commit is contained in:
parent
7eab7675cb
commit
3e80925aaa
|
@ -302,10 +302,11 @@ mcopy.arduino.fakeConnect = async function (serial) {
|
||||||
let end
|
let end
|
||||||
if (typeof timeout === 'undefined') timeout = 10
|
if (typeof timeout === 'undefined') timeout = 10
|
||||||
mcopy.arduino.timer = +new Date()
|
mcopy.arduino.timer = +new Date()
|
||||||
return setTimeout(() => {
|
setTimeout(() => {
|
||||||
mcopy.arduino.end(cmd)
|
mcopy.arduino.end(cmd)
|
||||||
return cb()
|
return cb()
|
||||||
}, timeout)
|
}, timeout)
|
||||||
|
|
||||||
},
|
},
|
||||||
string : async function (str) {
|
string : async function (str) {
|
||||||
//do nothing
|
//do nothing
|
||||||
|
|
Loading…
Reference in New Issue