From ddb33e7f352102a1889b93d879a3ce2161de1b48 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 22 Mar 2019 03:13:46 -0400 Subject: [PATCH] Require the Commands module as cmd in main.js --- app/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main.js b/app/main.js index 5e0ef57..1065bcf 100644 --- a/app/main.js +++ b/app/main.js @@ -41,6 +41,7 @@ let proj2; let light; let dig; let dev; +let cmd; const cfg = require('./data/cfg.json') @@ -123,7 +124,10 @@ var init = async function () { cam = require('cam')(arduino, cfg, mainWindow.webContents, dig) proj = require('proj')(arduino, cfg, mainWindow.webContents, dig) - console.dir(dev.state) + cmd = require('cmd')(cfg, proj, cam, light); + + + //console.dir(dev.state) //cmd //seq }