forked from mamu/spacepanel_aggregator
fix led order randomization, again
This commit is contained in:
parent
d75584b4cf
commit
48f99c2f63
|
@ -35,8 +35,7 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
|
||||||
ledList: make(map[int][]*Space),
|
ledList: make(map[int][]*Space),
|
||||||
}
|
}
|
||||||
|
|
||||||
i := 0
|
for i, spaceUrls := range spaceList {
|
||||||
for _, spaceUrls := range spaceList {
|
|
||||||
for _, url := range spaceUrls {
|
for _, url := range spaceUrls {
|
||||||
space := &Space{
|
space := &Space{
|
||||||
URL: url,
|
URL: url,
|
||||||
|
@ -45,7 +44,6 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
|
||||||
go StartPollWorker(space)
|
go StartPollWorker(space)
|
||||||
s.ledList[i] = append(s.ledList[i], space)
|
s.ledList[i] = append(s.ledList[i], space)
|
||||||
}
|
}
|
||||||
i++
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|
Loading…
Reference in New Issue