summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-02-07 17:35:15 -0800
committerKeith Packard <keithp@keithp.com>2015-02-07 17:35:15 -0800
commit9d5a6914982a29d22103e0202735c9e01ee9e831 (patch)
tree47f0312c811da5eb627b4929b59da6af33499c84 /altoslib
parentcbc9ecd960d0dd27a2275b4550c30c5c88ccf5bb (diff)
altoslib: Clear saved TelemetryReader state instead of resetting in ScanUI
Instead of attempting to mash the saved state from AltosScanUI, just throw it away in AltosTelemetryReader.reset. Much cleaner, and more reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosTelemetryReader.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/altoslib/AltosTelemetryReader.java b/altoslib/AltosTelemetryReader.java
index b3b97fae..f2d69290 100644
--- a/altoslib/AltosTelemetryReader.java
+++ b/altoslib/AltosTelemetryReader.java
@@ -53,6 +53,7 @@ public class AltosTelemetryReader extends AltosFlightReader {
public void reset() {
flush();
+ state = null;
}
public void close(boolean interrupted) {