Skip to content

Commit

Permalink
fix: PFL follows ch-strip crash on midas, as PFL is not available on …
Browse files Browse the repository at this point in the history
…Midas
  • Loading branch information
olzzon committed Nov 22, 2023
1 parent e6ae5d0 commit 3328800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/utils/mixerConnections/OscMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 3328800

Please sign in to comment.