From 47f7efc4bec9d890f74d25149bcc9c29faf9ba56 Mon Sep 17 00:00:00 2001 From: Baud Date: Sat, 1 Jun 2024 16:10:01 +0100 Subject: [PATCH] Yes, more debugging --- index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 3e216ca..9c5eca9 100644 --- a/index.ts +++ b/index.ts @@ -105,9 +105,14 @@ function handle_message(message: Partial) { event: "log", message: JSON.stringify(info) }) - for (let index = 0; index < info.slots ?? 1; index++) { + let slots = info.slots === null ? 1 : info.slots; + for (let index = 0; index < slots; index++) { setInterval(() => { newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => { + notifyClients({ + event: "log", + message: JSON.stringify(slot) + }) notifyClients({ event: "record_time_remaining", hyperdeck_id: message.id,