From 7a901b31c4291fd3ea7ca3ef4882c8a3756eb1c4 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 26 Feb 2019 21:57:43 -0500 Subject: [PATCH] Add log to device module. This cli app is turning into a dog fast. Need to take a step back and reconsider. --- cli/lib/device/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/lib/device/index.js b/cli/lib/device/index.js index 1557314..40193cd 100644 --- a/cli/lib/device/index.js +++ b/cli/lib/device/index.js @@ -1,5 +1,7 @@ 'use strict' +let arduino +const log = require('log')({quiet : false}) const dev = {} dev.init = function () { @@ -293,4 +295,7 @@ dev.ready = function (projector, camera, light) { return true }; -module.exports = dev \ No newline at end of file +module.exports = function (a) { + arduino = a + return dev +} \ No newline at end of file