Correctly update channel sliders

This commit is contained in:
Phireh 2023-08-14 22:18:24 +02:00 committed by Hane
commit c4b1c4b796
2 changed files with 16 additions and 14 deletions

View file

@ -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);