Skip to content

Commit

Permalink
fix: HUI remote - only update HUI if connected
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 3, 2019
1 parent 38a71f7 commit ed855c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/HuiMidiRemoteConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class HuiMidiRemoteConnection {
}

updateRemoteFaderState(channelIndex: number, outputLevel: number) {
if (!this.midiOutput) { return };
console.log("Send fader update :", "Channel index : ", channelIndex, "OutputLevel : ", this.convertToRemoteLevel(outputLevel))
this.midiOutput.sendControlChange(
(channelIndex),
Expand All @@ -147,6 +148,7 @@ export class HuiMidiRemoteConnection {
}

updateRemotePgmPstPfl(channelIndex: number) {
if (!this.midiOutput) { return };
//Update SELECT button:
this.midiOutput.sendControlChange(
12,
Expand Down

0 comments on commit ed855c0

Please sign in to comment.