Corrected the fakeConnect serial fallback, which was failing to complete steps

This commit is contained in:
mmcwilliams 2018-03-04 22:35:21 -05:00
parent 7eab7675cb
commit 3e80925aaa
1 changed files with 2 additions and 1 deletions

View File

@ -302,10 +302,11 @@ mcopy.arduino.fakeConnect = async function (serial) {
let end
if (typeof timeout === 'undefined') timeout = 10
mcopy.arduino.timer = +new Date()
return setTimeout(() => {
setTimeout(() => {
mcopy.arduino.end(cmd)
return cb()
}, timeout)
},
string : async function (str) {
//do nothing