Yes, it's debugging

This commit is contained in:
Baud 2024-06-01 16:12:46 +01:00
parent 47f7efc4be
commit 94d8fa5d57
1 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => {
notifyClients({
event: "log",
message: JSON.stringify(info)
message: "DEVICE INFO " + JSON.stringify(info)
})
let slots = info.slots === null ? 1 : info.slots;
for (let index = 0; index < slots; index++) {
@ -111,7 +111,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
notifyClients({
event: "log",
message: JSON.stringify(slot)
message: "SLOT " + JSON.stringify(slot)
})
notifyClients({
event: "record_time_remaining",
@ -123,7 +123,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
console.log(JSON.stringify(err))
notifyClients({
event: "log",
message: JSON.stringify(err)
message: "ERR " + JSON.stringify(err)
})
})
}, 1000)
@ -133,7 +133,7 @@ function handle_message(message: Partial<WebSocketMessage>) {
console.log(JSON.stringify(err))
notifyClients({
event: "log",
message: JSON.stringify(err)
message: "ERR " + JSON.stringify(err)
})
})
}, 1000)