_sad cat noises_
This commit is contained in:
parent
8c38320062
commit
5e020c8862
6
index.ts
6
index.ts
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue