From: Keith Packard Date: Tue, 26 Apr 2011 04:26:21 +0000 (-0700) Subject: altosui: Fix TeleBT name in flight monitor title X-Git-Tag: 0.9.3~46 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=aa5caf6310f074109472e6f55d8bd9751fb75c4c;ds=sidebyside altosui: Fix TeleBT name in flight monitor title Was getting the product number, not the product name. Signed-off-by: Keith Packard --- diff --git a/altosui/AltosBTDevice.java b/altosui/AltosBTDevice.java index c2721b26..7a876c25 100644 --- 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()); + getProductName(), getSerial(), getAddr()); }