mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 05:55:18 +01:00
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;
|
||||
}
|
||||
}
|
||||
/* Use the last range if there was no match. */
|
||||
if (range == range_idx) {
|
||||
range--;
|
||||
}
|
||||
if(range == current_range) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user