Yes, more debugging

This commit is contained in:
Baud 2024-06-01 16:10:01 +01:00
parent 7b964e9171
commit 47f7efc4be
1 changed files with 6 additions and 1 deletions

View File

@ -105,9 +105,14 @@ function handle_message(message: Partial<WebSocketMessage>) {
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,