This avoids re-using stale state after switching telemetry reception
parameters around, which otherwise generates spurious entries for the
wrong frequencies in the scan results list.
Signed-off-by: Keith Packard <keithp@keithp.com>
frequencies[frequency_index],
telemetry,
rate);
frequencies[frequency_index],
telemetry,
rate);
+ /* Reset the state so we don't get this data for another channel */
+ state.init();
Runnable r = new Runnable() {
public void run() {
results.add(result);
Runnable r = new Runnable() {
public void run() {
results.add(result);
void next() throws InterruptedException, TimeoutException {
reader.set_monitor(false);
void next() throws InterruptedException, TimeoutException {
reader.set_monitor(false);
- /* Let any pending input from the last configuration drain out */
- Thread.sleep(100);
-
if (select_rate) {
boolean wrapped = false;
do {
if (select_rate) {
boolean wrapped = false;
do {