Skip to content

Commit

Permalink
Fix: Meters didn´t work on behringer and midas after renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed May 6, 2019
1 parent 2868a62 commit b090182
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/OscMixerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ export class OscMixerConnection {
.CHANNEL_OUT_GAIN)){
let ch = message.address.split("/")[2];
if (this.mixerProtocol.mode === 'master'
&& !this.store.channels[0].channel[ch - 1].fadeActive)
&& !this.store.channels[0].channel[ch - 1].fadeActive
&& message.args[0] > this.mixerProtocol.fader.min)
{
window.storeRedux.dispatch({
type:'SET_FADER_LEVEL',
channel: ch - 1,
level: message.args[0]
});
if (!this.store.channels[0].channel[ch - 1].pgmOn
&& message.args[0] > this.mixerProtocol.fader.min) {
if (!this.store.channels[0].channel[ch - 1].pgmOn) {
window.storeRedux.dispatch({
type:'TOGGLE_PGM',
channel: ch - 1
Expand All @@ -78,9 +78,9 @@ export class OscMixerConnection {
}
} else if (this.checkOscCommand(message.address, this.mixerProtocol.fromMixer
.CHANNEL_VU)){
if (this.store.settings[0].mixerProtocol === 'behringerxr') {
if (this.store.settings[0].mixerProtocol.includes('behringer')) {
behringerMeter(message.args);
} else if (this.store.settings[0].mixerProtocol === 'midas') {
} else if (this.store.settings[0].mixerProtocol.includes('midas')) {
midasMeter(message.args);
} else {
let ch = message.address.split("/")[2];
Expand Down

0 comments on commit b090182

Please sign in to comment.