don't use wrong length accessor, fixes #23

This commit is contained in:
Sebastian Wiedenroth 2017-06-21 23:49:08 +02:00
parent 22b8bf62f0
commit a28411a357

2
dmx.js
View file

@ -43,7 +43,7 @@ DMX.prototype.updateAll = function(universe, value) {
DMX.prototype.universeToObject = function(universe) { DMX.prototype.universeToObject = function(universe) {
var universe = this.universes[universe] var universe = this.universes[universe]
var u = {} var u = {}
for(var i = 0; i < universe.length; i++) { for(var i = 0; i < 512; i++) {
u[i] = universe.get(i) u[i] = universe.get(i)
} }
return u return u