From b19b20dad95937cedbb81e1f03d6141b84d794f6 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 26 Feb 2019 21:54:04 -0500 Subject: [PATCH] Use exit and arduino modules properly --- cli/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/index.js b/cli/index.js index 6df7180..8289c13 100644 --- a/cli/index.js +++ b/cli/index.js @@ -16,7 +16,7 @@ const arduino = require('arduino')(cfg, ee) const Mscript = require('mscript') const mscript = new Mscript() -const dev = require('device') +const dev = require('device')(arduino) let log let readline @@ -67,7 +67,8 @@ async function main (arg) { } if (!devices ||devices.length > 1) { - return exit('No devices found', 1) + //return exit('No devices found', 1) + devices = [] } await dev.all(devices)