Skip to content

Commit

Permalink
Merge pull request #288 from tv2/fix/ch-strip-follows-pfl-crash-on-midas
Browse files Browse the repository at this point in the history
fix: PFL follows ch-strip crash on midas, as PFL is not available on …
  • Loading branch information
olzzon authored Dec 2, 2023
2 parents e6ae5d0 + 3328800 commit 3a112b7
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 3a112b7

Please sign in to comment.