From 3328800a3b87018077e23b021ccdfaff4e9eafeb Mon Sep 17 00:00:00 2001 From: Kasper Olsson Hans Date: Wed, 22 Nov 2023 15:38:00 +0100 Subject: [PATCH] fix: PFL follows ch-strip crash on midas, as PFL is not available on Midas --- server/src/utils/mixerConnections/OscMixerConnection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/utils/mixerConnections/OscMixerConnection.ts b/server/src/utils/mixerConnections/OscMixerConnection.ts index 10effbf1..c87ea7e0 100644 --- a/server/src/utils/mixerConnections/OscMixerConnection.ts +++ b/server/src/utils/mixerConnections/OscMixerConnection.ts @@ -591,7 +591,7 @@ export class OscMixerConnection { state.channels[0].chMixerConnection[this.mixerIndex].channel[ channelIndex ].channelTypeIndex - if (state.faders[0].fader[channelIndex].pflOn === true) { + if (state.faders[0].fader[channelIndex].pflOn === true && this.mixerProtocol.channelTypes[channelType].toMixer.PFL_ON) { this.sendOutMessage( this.mixerProtocol.channelTypes[channelType].toMixer.PFL_ON[0] .mixerMessage, @@ -601,7 +601,7 @@ export class OscMixerConnection { this.mixerProtocol.channelTypes[channelType].toMixer.PFL_ON[0] .type ) - } else { + } else if (state.faders[0].fader[channelIndex].pflOn === false && this.mixerProtocol.channelTypes[channelType].toMixer.PFL_OFF) { this.sendOutMessage( this.mixerProtocol.channelTypes[channelType].toMixer.PFL_OFF[0] .mixerMessage,