From 6cd45836771acc72dc56b0ee809f07cdf2b62c2f Mon Sep 17 00:00:00 2001 From: Morgan Diepart Date: Sat, 28 Jun 2025 17:16:39 +0200 Subject: [PATCH] Fixed maximum audio for MDUV3x0 out of bounds --- platform/drivers/audio/audio_MDx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/audio/audio_MDx.cpp b/platform/drivers/audio/audio_MDx.cpp index b955b016..1e58fe43 100644 --- a/platform/drivers/audio/audio_MDx.cpp +++ b/platform/drivers/audio/audio_MDx.cpp @@ -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;