forked from mirror/uv-k5-firmware
Fixed upper limit check.
This commit is contained in:
parent
2f00d4802f
commit
159006fdf0
@ -354,7 +354,7 @@ void APP_SetFrequencyByStep(VFO_Info_t *pInfo, int8_t Step)
|
||||
uint32_t Frequency;
|
||||
|
||||
Frequency = pInfo->ConfigRX.Frequency + (Step * pInfo->StepFrequency);
|
||||
if (Frequency >= gUpperLimitFrequencyBandTable[pInfo->Band]) {
|
||||
if (Frequency > gUpperLimitFrequencyBandTable[pInfo->Band]) {
|
||||
pInfo->ConfigRX.Frequency = gLowerLimitFrequencyBandTable[pInfo->Band];
|
||||
} else if (Frequency < gLowerLimitFrequencyBandTable[pInfo->Band]) {
|
||||
pInfo->ConfigRX.Frequency = FREQUENCY_FloorToStep(gUpperLimitFrequencyBandTable[pInfo->Band], pInfo->StepFrequency, gLowerLimitFrequencyBandTable[pInfo->Band]);
|
||||
|
Loading…
Reference in New Issue
Block a user