Skip to content

Commit

Permalink
chore: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Nov 22, 2023
1 parent 5d8a651 commit 8cb832f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions server/src/utils/mixerConnections/LawoRubyConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,21 @@ export class LawoRubyMixerConnection {
this.emberConnection.subscribe(
node as NumberedTreeNode<EmberElement>,
() => {
const levelDB = (node.contents as Model.Parameter)
.value as number
logger.debug(`Receiving Level from Ch ${ch}: ${levelDB}`)
const levelInDecibel: number = (
node.contents as Model.Parameter
).value as number
logger.trace(
`Receiving Level from Ch ${ch}: ${levelInDecibel}`
)
if (
!state.channels[0].chMixerConnection[this.mixerIndex]
.channel[ch - 1].fadeActive &&
levelDB >=
levelInDecibel >=
this.mixerProtocol.channelTypes[typeIndex].fromMixer
.CHANNEL_OUT_GAIN[0].min
) {
// update the fader
const level = dbToFloat(levelDB)
const level = dbToFloat(levelInDecibel)
store.dispatch(storeFaderLevel(ch - 1, level))

// toggle pgm based on level
Expand Down

0 comments on commit 8cb832f

Please sign in to comment.