default to the last specified frequency range
This was supposed to be the default, but there was a bug that looked past the last range.
This commit is contained in:
@ -313,6 +313,10 @@ uint8_t operacake_set_range(uint32_t freq_mhz) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Use the last range if there was no match. */
|
||||||
|
if (range == range_idx) {
|
||||||
|
range--;
|
||||||
|
}
|
||||||
if(range == current_range) {
|
if(range == current_range) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user