mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 18:44:58 +00:00
AM fix update
This commit is contained in:
parent
6d41adf265
commit
6e8d56c0a7
12
radio.c
12
radio.c
@ -565,7 +565,11 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
|
|||||||
Bandwidth = BK4819_FILTER_BW_WIDE;
|
Bandwidth = BK4819_FILTER_BW_WIDE;
|
||||||
case BK4819_FILTER_BW_WIDE:
|
case BK4819_FILTER_BW_WIDE:
|
||||||
case BK4819_FILTER_BW_NARROW:
|
case BK4819_FILTER_BW_NARROW:
|
||||||
BK4819_SetFilterBandwidth(Bandwidth, gRxVfo->IsAM);
|
#ifdef ENABLE_AM_FIX
|
||||||
|
BK4819_SetFilterBandwidth(Bandwidth, gRxVfo->IsAM && gSetting_AM_fix);
|
||||||
|
#else
|
||||||
|
BK4819_SetFilterBandwidth(Bandwidth, false);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -809,7 +813,11 @@ void RADIO_SetTxParameters(void)
|
|||||||
Bandwidth = BK4819_FILTER_BW_WIDE;
|
Bandwidth = BK4819_FILTER_BW_WIDE;
|
||||||
case BK4819_FILTER_BW_WIDE:
|
case BK4819_FILTER_BW_WIDE:
|
||||||
case BK4819_FILTER_BW_NARROW:
|
case BK4819_FILTER_BW_NARROW:
|
||||||
BK4819_SetFilterBandwidth(Bandwidth, gCurrentVfo->IsAM);
|
#ifdef ENABLE_AM_FIX
|
||||||
|
BK4819_SetFilterBandwidth(Bandwidth, gCurrentVfo->IsAM && gSetting_AM_fix);
|
||||||
|
#else
|
||||||
|
BK4819_SetFilterBandwidth(Bandwidth, false);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user