projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e7b7b8
)
altosui: Fix TeleBT name in flight monitor title
author
Keith Packard
<keithp@keithp.com>
Tue, 26 Apr 2011 04:26:21 +0000
(21:26 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 26 Apr 2011 04:26:21 +0000
(21:26 -0700)
Was getting the product number, not the product name.
Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosBTDevice.java
patch
|
blob
|
history
diff --git
a/altosui/AltosBTDevice.java
b/altosui/AltosBTDevice.java
index c2721b262c0df0b83a0a23a9a20900e961d3d80a..7a876c25feae21ee3a56d2a4ccae372ddfd4e50b 100644
(file)
--- a/
altosui/AltosBTDevice.java
+++ b/
altosui/AltosBTDevice.java
@@
-58,19
+58,13
@@
public class AltosBTDevice extends altos_bt_device implements AltosDevice {
}
public String toString() {
- String name = getName();
- if (name == null)
- name = "Altus Metrum";
return String.format("%-20.20s %4d %s",
getProductName(), getSerial(), getAddr());
}
public String toShortString() {
- String name = getName();
- if (name == null)
- name = "Altus Metrum";
return String.format("%s %d %s",
- getProduct(), getSerial(), getAddr());
+ getProduct
Name
(), getSerial(), getAddr());
}