projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: Document altosui "Graph Data" button
[fw/altos]
/
ao-tools
/
altosui
/
AltosDevice.java
diff --git
a/ao-tools/altosui/AltosDevice.java
b/ao-tools/altosui/AltosDevice.java
index f646305b3dc178da98433012ef24adabe1cb8136..f0fda57bc0b825c71d4af0dfa08180e4b3d4899e 100644
(file)
--- a/
ao-tools/altosui/AltosDevice.java
+++ b/
ao-tools/altosui/AltosDevice.java
@@
-101,6
+101,15
@@
public class AltosDevice extends altos_device {
getName(), getSerial(), getPath());
}
getName(), getSerial(), getPath());
}
+ public String toShortString() {
+ String name = getName();
+ if (name == null)
+ name = "Altus Metrum";
+ return String.format("%s %d %s",
+ name, getSerial(), getPath());
+
+ }
+
public boolean isAltusMetrum() {
if (getVendor() != vendor_altusmetrum)
return false;
public boolean isAltusMetrum() {
if (getVendor() != vendor_altusmetrum)
return false;