Skip to content

Commit

Permalink
fix(Lawo Ruby): misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Jun 15, 2020
1 parent b7d6c54 commit b1744da
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions server/utils/mixerConnections/LawoRubyConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ export class LawoRubyMixerConnection {
this.faders[
(fader.contents as Model.Parameter).value as number
] = name

store.dispatch({
type: SET_CHANNEL_LABEL,
label: name,
})
}
}
}
Expand Down Expand Up @@ -197,7 +192,7 @@ export class LawoRubyMixerConnection {
channelTypeIndex: number
) {
const sourceName = this.faders[ch]
if (!ch) return
if (!sourceName) return

let command = this.mixerProtocol.channelTypes[
typeIndex
Expand Down Expand Up @@ -354,12 +349,12 @@ export class LawoRubyMixerConnection {
state.channels[0].channel[channelIndex].channelTypeIndex

// gotta get the label and function:
const fader = this.faders[channelTypeIndex]
const fader = this.faders[channelTypeIndex + 1]
const fn = (await this.emberConnection.getElementByPath(
'Ruby.Functions.SetPFLState'
)) as Model.NumberedTreeNode<Model.EmberFunction>

if (fader || !fn)
if (!fader || !fn)
throw new Error(
'Oops could not find node or function to update PFL state'
)
Expand Down

0 comments on commit b1744da

Please sign in to comment.