AM fix modification

This commit is contained in:
Krzysiek Egzmont
2023-12-06 17:54:32 +01:00
parent e95f577074
commit c1a009cc2f
8 changed files with 66 additions and 35 deletions

View File

@@ -1121,7 +1121,7 @@ void APP_TimeSlice10ms(void)
#endif
#ifdef ENABLE_AM_FIX
if (gRxVfo->Modulation == MODULATION_AM && gSetting_AM_fix)
if (gRxVfo->Modulation == MODULATION_AM)
AM_fix_10ms(gEeprom.RX_VFO, false);
#endif

View File

@@ -113,8 +113,7 @@ static uint16_t GetRegMenuValue(uint8_t st) {
void LockAGC()
{
if(!lockAGC)
BK4819_SetAGC(0);
RADIO_SetupAGC(true, lockAGC);
lockAGC = true;
}
@@ -492,13 +491,6 @@ static void ToggleModulation() {
}
RADIO_SetModulation(settings.modulationType);
#ifdef ENABLE_AM_FIX
if(gSetting_AM_fix && settings.modulationType != MODULATION_AM) {
BK4819_InitAGC(false);
BK4819_SetAGC(1);
}
#endif
RelaunchScan();
redrawScreen = true;
}
@@ -1178,13 +1170,6 @@ void APP_RunSpectrum() {
ToggleRX(true), ToggleRX(false); // hack to prevent noise when squelch off
RADIO_SetModulation(settings.modulationType = gRxVfo->Modulation);
#ifdef ENABLE_AM_FIX
if(settings.modulationType != MODULATION_AM) {
BK4819_InitAGC(false);
BK4819_SetAGC(true);
}
#endif
BK4819_SetFilterBandwidth(settings.listenBw = BK4819_FILTER_BW_WIDE, false);
RelaunchScan();