Yet more debugging
This commit is contained in:
parent
e406af4c49
commit
f2d86c9a6d
4
index.ts
4
index.ts
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue