projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Catch errors opening USB devices. Limit list to relevant devices
[fw/altos]
/
ao-tools
/
altosui
/
AltosDeviceDialog.java
diff --git
a/ao-tools/altosui/AltosDeviceDialog.java
b/ao-tools/altosui/AltosDeviceDialog.java
index eb70877c9b99f18559a83e81989e126623251d75..08921c3d044d308680106b529b96f2c0b4abad8e 100644
(file)
--- a/
ao-tools/altosui/AltosDeviceDialog.java
+++ b/
ao-tools/altosui/AltosDeviceDialog.java
@@
-41,6
+41,10
@@
public class AltosDeviceDialog {
devices[0]);
return (altos_device) o;
} else {
devices[0]);
return (altos_device) o;
} else {
+ JOptionPane.showMessageDialog(frame,
+ "No AltOS devices available",
+ "No AltOS devices",
+ JOptionPane.ERROR_MESSAGE);
return null;
}
}
return null;
}
}