Change arduino namespace from mcopy to arduino
This commit is contained in:
parent
c91baebfc4
commit
79e413aeb1
|
@ -35,15 +35,15 @@ var init = function () {
|
||||||
log.init();
|
log.init();
|
||||||
arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg);
|
arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
mcopy.arduino.init(function (err, device) {
|
arduino.init(function (err, device) {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.info(err, 'SERIAL', false, true);
|
log.info(err, 'SERIAL', false, true);
|
||||||
mcopy.arduino.fakeConnect(function () {
|
arduino.fakeConnect(function () {
|
||||||
log.info('Connected to fake USB device', 'SERIAL', true, true);
|
log.info('Connected to fake USB device', 'SERIAL', true, true);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
log.info('Found device ' + device, 'SERIAL', true, true);
|
log.info('Found device ' + device, 'SERIAL', true, true);
|
||||||
mcopy.arduino.connect(function () {
|
arduino.connect(function () {
|
||||||
log.info('Connected to device ' + device, 'SERIAL', true, true);
|
log.info('Connected to device ' + device, 'SERIAL', true, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue