diff --git a/index.ts b/index.ts index 39aab81..3e216ca 100644 --- a/index.ts +++ b/index.ts @@ -105,7 +105,7 @@ function handle_message(message: Partial) { event: "log", message: JSON.stringify(info) }) - for (let index = 0; index < info.slots; index++) { + for (let index = 0; index < info.slots ?? 1; index++) { setInterval(() => { newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => { notifyClients({