Correctly update channel sliders
This commit is contained in:
parent
5bb37eb9fd
commit
9b1c251a3c
2 changed files with 16 additions and 14 deletions
|
|
@ -128,7 +128,8 @@ void OverseerHandler::updateChannelVolumeCallback(uint64_t idx, uint32_t channel
|
|||
|
||||
// convert channel to bitmask
|
||||
int i = 0;
|
||||
while (i++);
|
||||
while (i < channel)
|
||||
i++;
|
||||
uint32_t mask = (1 << i);
|
||||
|
||||
updateFrontVolumeCallback(idx, mask, newVal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue