don't use wrong length accessor, fixes #23
This commit is contained in:
parent
22b8bf62f0
commit
a28411a357
1 changed files with 1 additions and 1 deletions
2
dmx.js
2
dmx.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue