From 3e80925aaaf79e1514bea68a448a89fa65425a11 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 4 Mar 2018 22:35:21 -0500 Subject: [PATCH] Corrected the fakeConnect serial fallback, which was failing to complete steps --- app/lib/arduino/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/arduino/index.js b/app/lib/arduino/index.js index 5d4bdb1..b6c6a06 100644 --- a/app/lib/arduino/index.js +++ b/app/lib/arduino/index.js @@ -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