summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-16 20:43:57 -0700
committerKeith Packard <keithp@keithp.com>2011-07-16 20:46:04 -0700
commite905042879147dd86241bf2dcc7437e5a6eb7578 (patch)
tree866c6b90573678f57f0b84b53f0fdd9748791613
parent941b90a4905e34936d24a25ca90ac04eb6f5a792 (diff)
altosui: Initialize channel and telemetry before use in ScanUI
Otherwise we try to use telemetry format 0, which means 'no telemetry'. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosScanUI.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosScanUI.java b/altosui/AltosScanUI.java
index 54be4f52..bc1638ed 100644
--- a/altosui/AltosScanUI.java
+++ b/altosui/AltosScanUI.java
@@ -311,6 +311,9 @@ public class AltosScanUI
owner = in_owner;
+ channel = 0;
+ telemetry = Altos.ao_telemetry_min;
+
if (!open())
return;
@@ -326,9 +329,6 @@ public class AltosScanUI
pane.setLayout(new GridBagLayout());
- channel = 0;
- telemetry = Altos.ao_telemetry_min;
-
scanning_label = new JLabel("Scanning:");
set_label();