fix bugs from previous commit
This commit is contained in:
parent
69b86527d5
commit
7525fd2e70
1 changed files with 2 additions and 2 deletions
|
@ -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.serial.write(new Buffer('00000000'));
|
||||||
self.emit('success');
|
self.emit('success');
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ Arduino.prototype.setup = function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.processWriteBuffer();
|
self.processWriteBuffer();
|
||||||
}), 500);
|
}, 5000);});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue