Yet more debugging

This commit is contained in:
Baud 2024-06-01 16:05:46 +01:00
parent e406af4c49
commit f2d86c9a6d
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ function handle_message(message: Partial<WebSocketMessage>) {
setTimeout(() => { setTimeout(() => {
newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => { newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => {
notifyClients({
event: "log",
message: JSON.stringify(info)
})
for (let index = 0; index < info.slots; index++) { for (let index = 0; index < info.slots; index++) {
setInterval(() => { setInterval(() => {
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => { newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {