From a28411a35718746691cc4fa60850fbe15c914638 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Wed, 21 Jun 2017 23:49:08 +0200 Subject: [PATCH] don't use wrong length accessor, fixes #23 --- dmx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmx.js b/dmx.js index 782704b..78c937a 100644 --- a/dmx.js +++ b/dmx.js @@ -43,7 +43,7 @@ DMX.prototype.updateAll = function(universe, value) { DMX.prototype.universeToObject = function(universe) { var universe = this.universes[universe] var u = {} - for(var i = 0; i < universe.length; i++) { + for(var i = 0; i < 512; i++) { u[i] = universe.get(i) } return u