Fixed Band Select Bug

This commit is contained in:
phdlee 2018-05-09 16:53:40 +09:00
parent 76d5c362d0
commit 6a2369bc27

View File

@ -254,8 +254,8 @@ void setNextHamBandFreq(unsigned long f, char moveDirection)
if ((resultFreq / 1000) < hamBandRange[(unsigned char)findedIndex][0] || (resultFreq / 1000) > hamBandRange[(unsigned char)findedIndex][1]) if ((resultFreq / 1000) < hamBandRange[(unsigned char)findedIndex][0] || (resultFreq / 1000) > hamBandRange[(unsigned char)findedIndex][1])
resultFreq = (unsigned long)(hamBandRange[(unsigned char)findedIndex][0]) * 1000; resultFreq = (unsigned long)(hamBandRange[(unsigned char)findedIndex][0]) * 1000;
setFrequency(resultFreq);
byteToMode(loadMode, 1); byteToMode(loadMode, 1);
setFrequency(resultFreq);
} }
void saveBandFreqByIndex(unsigned long f, unsigned long mode, char bandIndex) { void saveBandFreqByIndex(unsigned long f, unsigned long mode, char bandIndex) {