fix minor bug width the write buffer

This commit is contained in:
Stefan Sterz 2016-01-14 21:58:44 +01:00
parent 8b7b84f83a
commit e1b488ad35
1 changed files with 3 additions and 2 deletions

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);