fix minor bug width the write buffer

This commit is contained in:
Shannon Sterz 2016-01-14 21:58:44 +01:00
parent 8b7b84f83a
commit e1b488ad35

View file

@ -31,15 +31,16 @@ Arduino.prototype.setup = function () {
}
self.serial.write(new Buffer('00000000'));
self.success = true;
self.processWriteBuffer();
});
self.success = true;
self.processWriteBuffer();
});
}
Arduino.prototype.write = function (m) {
if (this.serial) {
console.log('sending '+m);
this.serial.write(m);
} else {
this.writeBuffer.push(m);