From 79e413aeb1016f15ea585b050ffaa03abae222f8 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 15 Apr 2016 18:17:59 -0400 Subject: [PATCH] Change arduino namespace from mcopy to arduino --- app/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 8583600..743f535 100644 --- a/app/main.js +++ b/app/main.js @@ -35,15 +35,15 @@ var init = function () { log.init(); arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg); setTimeout(function () { - mcopy.arduino.init(function (err, device) { + arduino.init(function (err, device) { if (err) { log.info(err, 'SERIAL', false, true); - mcopy.arduino.fakeConnect(function () { + arduino.fakeConnect(function () { log.info('Connected to fake USB device', 'SERIAL', true, true); }); } else { log.info('Found device ' + device, 'SERIAL', true, true); - mcopy.arduino.connect(function () { + arduino.connect(function () { log.info('Connected to device ' + device, 'SERIAL', true, true); }); }