From 7525fd2e70788a2f52441468cc63c853251dccde Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Sat, 16 Jan 2016 22:42:59 +0100 Subject: [PATCH] fix bugs from previous commit --- nodejs/ar-com/arduino.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodejs/ar-com/arduino.js b/nodejs/ar-com/arduino.js index 5f5335a..e08d638 100644 --- a/nodejs/ar-com/arduino.js +++ b/nodejs/ar-com/arduino.js @@ -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);}); }); }