diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-14 10:12:29 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-14 10:12:29 -0700 |
commit | 9cdef76c1275b343099d0d01af82d7eadd36a410 (patch) | |
tree | a5500996924c35b365013bbae61128ee1328c64b /altosui/AltosUI.java | |
parent | 5b3f18b38d80aa041b971204bf7a94278bd9584a (diff) |
altosui: Create abstract AltosDevice class
This will wrap either USB or BT devices. The USB device constants have
been moved to Altos.java
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 73ddf979..0fc6583c 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -34,7 +34,7 @@ public class AltosUI extends JFrame { public AltosVoice voice = new AltosVoice(); public static boolean load_library(Frame frame) { - if (!AltosDevice.load_library()) { + if (!Altos.load_library()) { JOptionPane.showMessageDialog(frame, String.format("No AltOS library in \"%s\"", System.getProperty("java.library.path","<undefined>")), @@ -203,7 +203,7 @@ public class AltosUI extends JFrame { bt_manage = new AltosBTManage(AltosBTDevice.bt_product_any, this); bt_manage.list(); AltosDevice device = AltosDeviceDialog.show(AltosUI.this, - AltosDevice.product_basestation); + Altos.product_basestation); if (device != null) telemetry_window(device); @@ -401,7 +401,7 @@ public class AltosUI extends JFrame { AltosUI altosui = new AltosUI(); altosui.setVisible(true); - AltosDevice[] devices = AltosDevice.list(AltosDevice.product_basestation); + AltosDevice[] devices = AltosUSBDevice.list(Altos.product_basestation); for (int i = 0; i < devices.length; i++) altosui.telemetry_window(devices[i]); } |