fixes #60 (make sure volume setting is restored after tx)

pull/63/head
tarxvf 2021-12-05 07:06:52 -05:00 zatwierdzone przez Niccolò Izzo
rodzic a5ccda9923
commit e7c98aa71f
1 zmienionych plików z 2 dodań i 9 usunięć

Wyświetl plik

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