fix minor bug width the write buffer
This commit is contained in:
parent
8b7b84f83a
commit
e1b488ad35
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue