Fixed maximum audio for MDUV3x0 out of bounds

pull/328/head^2
Morgan Diepart 2025-06-28 17:16:39 +02:00 zatwierdzone przez silseva
rodzic 359c29592b
commit 6cd4583677
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -90,7 +90,7 @@ static void *audio_thread(void *arg)
if(state.volume != oldVolume)
{
// Apply new volume level, map 0 - 255 range into -31 to 31
int8_t gain = ((int8_t) (state.volume / 4)) - 31;
int8_t gain = ((int8_t) (state.volume / 4)) - 32;
C6000.setDacGain(gain);
oldVolume = state.volume;