Use LOWEST_FREQ and HIGHEST_FREQ when changing bands

This commit is contained in:
Jack Zielke 2018-08-21 22:29:45 -04:00
parent 948267bb39
commit e1515daf41
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ void menuBand(int btn){
}
} //end of only ham band move
else { //original source
if (knob < 0 && frequency > 3000000l)
if (knob < 0 && frequency > LOWEST_FREQ)
setFrequency(frequency - 200000l);
if (knob > 0 && frequency < 30000000l)
if (knob > 0 && frequency < HIGHEST_FREQ)
setFrequency(frequency + 200000l);
if (frequency > 10000000l)