_sad cat noises_

This commit is contained in:
Baud 2024-05-31 00:33:09 +01:00
parent 8c38320062
commit 5e020c8862
1 changed files with 14 additions and 20 deletions

View File

@ -93,9 +93,6 @@ function handle_message(message: Partial<WebSocketMessage>) {
}).catch(() => {})
}, 1000)
let connected = false;
while (!connected) {
try {
newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => {
for (let index = 0; index < info.slots; index++) {
setInterval(() => {
@ -108,11 +105,8 @@ function handle_message(message: Partial<WebSocketMessage>) {
})
}).catch(() => {})
}, 1000)
connected = true;
}
})
} catch (_err) {}
}
})
newHyperdeck.on('notify.slot', function (slot) {