Skip to content

Commit

Permalink
fix: components.Pot producing wrong result on first value
Browse files Browse the repository at this point in the history
This fixes a regression introduced in mixxxdj#4495
and reported as mixxxdj#11814
  • Loading branch information
Swiftb0y committed Jul 11, 2024
1 parent 8db8b72 commit 5973848
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions res/controllers/midi-components-0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,7 @@
if (this.max === Component.prototype.max) {
this.max = (1 << 14) - 1;
}
value = (value << 7) + (this._firstLSB ? this._firstLSB : 0);
this.input(channel, control, value, status, group);
this.input(channel, control, (value << 7) + (this._firstLSB ? this._firstLSB : 0), status, group);
}
this.MSB = value;
},
Expand Down

0 comments on commit 5973848

Please sign in to comment.