test: 0?
This commit is contained in:
parent
94d8fa5d57
commit
48eef54da3
2
index.ts
2
index.ts
|
@ -105,7 +105,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
|
||||||
event: "log",
|
event: "log",
|
||||||
message: "DEVICE INFO " + JSON.stringify(info)
|
message: "DEVICE INFO " + JSON.stringify(info)
|
||||||
})
|
})
|
||||||
let slots = info.slots === null ? 1 : info.slots;
|
let slots = info.slots === null ? 0 : info.slots;
|
||||||
for (let index = 0; index < slots; index++) {
|
for (let index = 0; index < slots; index++) {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
||||||
|
|
Loading…
Reference in New Issue