fix bugs from previous commit

This commit is contained in:
Shannon Sterz 2016-01-16 22:42:59 +01:00
parent 69b86527d5
commit 7525fd2e70

View file

@ -35,7 +35,7 @@ Arduino.prototype.setup = function () {
}
});
serial.on('open', setTimout(function () {
self.serial.on('open', function () { setTimeout(function () {
self.serial.write(new Buffer('00000000'));
self.emit('success');
@ -44,7 +44,7 @@ Arduino.prototype.setup = function () {
});
self.processWriteBuffer();
}), 500);
}, 5000);});
});
}