Require the Commands module as cmd in main.js

This commit is contained in:
mmcwilliams 2019-03-22 03:13:46 -04:00
parent 3dcfa708d2
commit ddb33e7f35
1 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,7 @@ let proj2;
let light; let light;
let dig; let dig;
let dev; let dev;
let cmd;
const cfg = require('./data/cfg.json') const cfg = require('./data/cfg.json')
@ -123,7 +124,10 @@ var init = async function () {
cam = require('cam')(arduino, cfg, mainWindow.webContents, dig) cam = require('cam')(arduino, cfg, mainWindow.webContents, dig)
proj = require('proj')(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 //cmd
//seq //seq
} }