From e7c98aa71f524e361920d0921a6961cc1c8324ef Mon Sep 17 00:00:00 2001 From: tarxvf Date: Sun, 5 Dec 2021 07:06:52 -0500 Subject: [PATCH] fixes #60 (make sure volume setting is restored after tx) --- openrtx/src/rtx/OpMode_FM.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/openrtx/src/rtx/OpMode_FM.cpp b/openrtx/src/rtx/OpMode_FM.cpp index 5767bbb0..ab338ad4 100644 --- a/openrtx/src/rtx/OpMode_FM.cpp +++ b/openrtx/src/rtx/OpMode_FM.cpp @@ -53,15 +53,8 @@ void _setVolume() else { audio_enableAmp(); - - // Update HR_C6000 gain only if volume changed - static uint8_t old_volume = 0; - if(volume != old_volume) - { - // Setting HR_C6000 volume to 0 = max volume - HR_C6000::instance().setDacGain(volume); - old_volume = volume; - } + // Setting HR_C6000 volume to 0 = max volume + HR_C6000::instance().setDacGain(volume); } } #endif