summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-04-05 22:21:46 -0700
committerKeith Packard <keithp@keithp.com>2010-04-05 22:21:46 -0700
commitcc600a0389720bc7e435dbda8bec080ef19e0c58 (patch)
tree7d69db5676a679038c30711293f722033d90ca33 /ao-tools/altosui/AltosUI.java
parentc28646d72005daeadb70b95fd3b0050bd752cc55 (diff)
Add Linux device discovery
AltosDeviceLinux.java scans /proc to locate suitable devices. This will be hooked up to the UI shortly.
Diffstat (limited to 'ao-tools/altosui/AltosUI.java')
-rw-r--r--ao-tools/altosui/AltosUI.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java
index a51ca1eb..54016ac5 100644
--- a/ao-tools/altosui/AltosUI.java
+++ b/ao-tools/altosui/AltosUI.java
@@ -682,6 +682,10 @@ public class AltosUI extends JFrame {
}
public static void main(final String[] args) {
+ AltosDevice[] devices = AltosDeviceLinux.list();
+ for (int i = 0; i < devices.length; i++)
+ System.out.printf("Model: %s Serial: %d Tty: %s\n",
+ devices[i].product, devices[i].serial, devices[i].tty);
AltosUI altosui = new AltosUI();
altosui.setVisible(true);
}