fix bugs from previous commit

This commit is contained in:
Stefan Sterz 2016-01-16 22:42:59 +01:00
parent 69b86527d5
commit 7525fd2e70
1 changed files with 2 additions and 2 deletions

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