summaryrefslogtreecommitdiff
path: root/altosui/AltosIgniteUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'altosui/AltosIgniteUI.java')
-rw-r--r--altosui/AltosIgniteUI.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/altosui/AltosIgniteUI.java b/altosui/AltosIgniteUI.java
index 076d99b2..78eba8e6 100644
--- a/altosui/AltosIgniteUI.java
+++ b/altosui/AltosIgniteUI.java
@@ -72,12 +72,15 @@ public class AltosIgniteUI
public void run () {
try {
- ignite = new AltosIgnite(device);
+ AltosSerial serial = new AltosSerial(device);
+ serial.set_frame(owner);
+ ignite = new AltosIgnite(serial,
+ !device.matchProduct(Altos.product_altimeter));
+
} catch (Exception e) {
send_exception(e);
return;
}
- ignite.set_frame(owner);
for (;;) {
Runnable r;