diff options
| author | Keith Packard <keithp@keithp.com> | 2011-04-25 21:26:21 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-04-25 21:26:21 -0700 | 
| commit | aa5caf6310f074109472e6f55d8bd9751fb75c4c (patch) | |
| tree | aa936dd07f920a4b0b25a408ca02855dc47d1887 | |
| parent | 2e7b7b80432bb251ac39efa1fa05d32b5f250e14 (diff) | |
altosui: Fix TeleBT name in flight monitor title
Was getting the product number, not the product name.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altosui/AltosBTDevice.java | 8 | 
1 files changed, 1 insertions, 7 deletions
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());  	}  | 
