mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix W/N (issue #233)
This commit is contained in:
1 parent
43c40ae9a0
commit
dea747c628
1 file changed
+6
-5
+6
-5
@@ -550,16 +550,17 @@ void ACTION_Ptt(void)
|
||||
|
||||
void ACTION_Wn(void)
|
||||
{
|
||||
if (gRxVfo->Modulation == MODULATION_AM)
|
||||
const bool isRx = FUNCTION_IsRx();
|
||||
VFO_Info_t *pVfo = isRx ? gRxVfo : gTxVfo;
|
||||
|
||||
pVfo->CHANNEL_BANDWIDTH = !pVfo->CHANNEL_BANDWIDTH;
|
||||
|
||||
if (pVfo->Modulation == MODULATION_AM)
|
||||
{
|
||||
BK4819_SetFilterBandwidth(BK4819_FILTER_BW_AM, true);
|
||||
return;
|
||||
}
|
||||
|
||||
const bool isRx = FUNCTION_IsRx();
|
||||
|
||||
VFO_Info_t *pVfo = isRx ? gRxVfo : gTxVfo;
|
||||
pVfo->CHANNEL_BANDWIDTH = !pVfo->CHANNEL_BANDWIDTH;
|
||||
uint8_t bw = pVfo->CHANNEL_BANDWIDTH;
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN_NARROWER
|
||||
|
||||
Reference in new issue
Block a user