From 74e4439ca26b574e34b0e581b96095506e80f5db Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Sat, 9 Apr 2016 18:11:48 +0200 Subject: [PATCH] don't overwrite intervalhandle --- drivers/enttec-open-usb-dmx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/enttec-open-usb-dmx.js b/drivers/enttec-open-usb-dmx.js index eef2fd7..cbcee6d 100644 --- a/drivers/enttec-open-usb-dmx.js +++ b/drivers/enttec-open-usb-dmx.js @@ -37,11 +37,11 @@ EnttecOpenUsbDMX.prototype.send_universe = function() { } EnttecOpenUsbDMX.prototype.start = function() { - this.interval = setInterval(this.send_universe.bind(this), this.sleepTime) + this.intervalhandle = setInterval(this.send_universe.bind(this), this.interval) } EnttecOpenUsbDMX.prototype.stop = function() { - clearInterval(this.interval) + clearInterval(this.intervalhandle) } EnttecOpenUsbDMX.prototype.close = function(cb) {