diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-22 11:53:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-22 11:54:17 -0700 |
commit | 233ab58df8ac8e1fdeab8d4c2f6c8c9d3f6e7be1 (patch) | |
tree | 97077b121ed77cb576424f7c0cf4b6936a735e64 /altosui/AltosIgniteUI.java | |
parent | 38f66a31174dd367e39d717c527f555add60a9d4 (diff) |
altosui: Move AltosIgnite.java to altoslib
To be shared with altosdroid eventually
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIgniteUI.java')
-rw-r--r-- | altosui/AltosIgniteUI.java | 7 |
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; |