Maybe that just works?
This commit is contained in:
@@ -105,7 +105,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
|
|||||||
event: "log",
|
event: "log",
|
||||||
message: JSON.stringify(info)
|
message: JSON.stringify(info)
|
||||||
})
|
})
|
||||||
for (let index = 0; index < info.slots; index++) {
|
for (let index = 0; index < info.slots ?? 1; index++) {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
||||||
notifyClients({
|
notifyClients({
|
||||||
|
|||||||
Reference in New Issue
Block a user