Removed speaker 'POP' on squelch opening and when starting TX with squelch open

replace/29a4b77cbec68bf23416f5c2f7ca5559d9b99d0a
Silvano Seva 2021-03-16 08:37:57 +01:00
rodzic c1abeefd67
commit 2bde981222
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -19,6 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/delays.h>
#include <interfaces/radio.h>
#include <string.h>
#include <rtx.h>
@ -64,6 +65,7 @@ void _afCtrlSpeaker(bool enable)
{
#if defined(PLATFORM_MD3x0) || defined(PLATFORM_MDUV380)
gpio_setPin(AUDIO_AMP_EN);
delayMs(10);
gpio_clearPin(SPK_MUTE);
#ifdef PLATFORM_MD3x0
gpio_setPin(FM_MUTE);
@ -75,8 +77,8 @@ void _afCtrlSpeaker(bool enable)
else
{
#if defined(PLATFORM_MD3x0) || defined(PLATFORM_MDUV380)
gpio_clearPin(AUDIO_AMP_EN);
gpio_setPin(SPK_MUTE);
gpio_clearPin(AUDIO_AMP_EN);
#ifdef PLATFORM_MD3x0
gpio_clearPin(FM_MUTE);
#endif
@ -294,6 +296,7 @@ void rtx_taskFunc()
/* TX logic */
if(platform_getPttStatus() && (rtxStatus.opStatus != TX))
{
_afCtrlSpeaker(false);
radio_disableRtx();
_afCtrlMic(true);