summaryrefslogtreecommitdiff
path: root/altosui/Altos.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-14 10:22:30 -0700
committerKeith Packard <keithp@keithp.com>2011-04-14 10:22:30 -0700
commit84163eee7847a09fe78f8762b28f857d76bf5755 (patch)
treebfb8063450c545550cc2a428ae80ff1307bf15f0 /altosui/Altos.java
parent9cdef76c1275b343099d0d01af82d7eadd36a410 (diff)
altosui: Make AltosBTDevice implement AltosDevice interface
This will allow the use of either USB or BT devices through the AltosDevice interface. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/Altos.java')
-rw-r--r--altosui/Altos.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/altosui/Altos.java b/altosui/Altos.java
index 5df004c5..d221077e 100644
--- a/altosui/Altos.java
+++ b/altosui/Altos.java
@@ -301,4 +301,12 @@ public class Altos {
public final static int product_any = 0x10000;
public final static int product_basestation = 0x10000 + 1;
+
+ static String bt_product_telebt() {
+ if (load_library())
+ return libaltosConstants.BLUETOOTH_PRODUCT_TELEBT;
+ return "TeleBT";
+ }
+
+ public final static String bt_product_telebt = bt_product_telebt();
}