diff options
| author | Keith Packard <keithp@keithp.com> | 2013-09-06 18:24:46 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-09-06 18:24:46 -0700 | 
| commit | 2449d123690746d0d0d5d66dfc4d3a05b9f5dc0c (patch) | |
| tree | d8b5455579c28b2cb026c4dfe69a04c70722fb6c /altoslib/AltosLib.java | |
| parent | ae675c66594d366774d8f7f9c78f1236d3810eed (diff) | |
altosui: Include device name in Table view
It's part of the telemetry, so we might as well display it
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLib.java')
| -rw-r--r-- | altoslib/AltosLib.java | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/altoslib/AltosLib.java b/altoslib/AltosLib.java index f8a3974a..46031912 100644 --- a/altoslib/AltosLib.java +++ b/altoslib/AltosLib.java @@ -418,4 +418,24 @@ public class AltosLib {  	public static File replace_extension(File input, String extension) {  		return new File(replace_extension(input.getPath(), extension));  	} + +	public static String product_name(int product_id) { +		switch (product_id) { +		case product_altusmetrum: return "AltusMetrum"; +		case product_telemetrum: return "TeleMetrum"; +		case product_teledongle: return "TeleDongle"; +		case product_teleterra: return "TeleTerra"; +		case product_telebt: return "TeleBT"; +		case product_telelaunch: return "TeleLaunch"; +		case product_telelco: return "TeleLco"; +		case product_telescience: return "Telescience"; +		case product_telepyro: return "TelePyro"; +		case product_telemega: return "TeleMega"; +		case product_megadongle: return "MegaDongle"; +		case product_telegps: return "TeleGPS"; +		case product_easymini: return "EasyMini"; +		case product_telemini: return "TeleMini"; +		default: return "unknown"; +		} +	}  }  | 
