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/AltosSerial.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/AltosSerial.java')
-rw-r--r-- | altosui/AltosSerial.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosSerial.java b/altosui/AltosSerial.java index 111bd771..6c80b66f 100644 --- a/altosui/AltosSerial.java +++ b/altosui/AltosSerial.java @@ -304,7 +304,7 @@ public class AltosSerial implements Runnable { throw new AltosSerialInUseException(device); devices_opened.add(device.getPath()); } - altos = libaltos.altos_open(device); + altos = device.open(); if (altos == null) { close(); throw new FileNotFoundException(device.toShortString()); |