summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-06-16 23:42:59 -0700
committerKeith Packard <keithp@keithp.com>2015-06-17 00:13:03 -0700
commitcdeefaba7d5ef69f28e5dfb152c5f185f8b85f2e (patch)
treefe58c5a4e4a966528d957c448cb50ee6e03b34d8
parent469be0a57dc9932c26f9c38986d22f6e8b2fd6ed (diff)
altosuilib: Show state.product if state.device_type isn't set
MonitorIdle doesn't get the device type, only the product. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosuilib/AltosInfoTable.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/altosuilib/AltosInfoTable.java b/altosuilib/AltosInfoTable.java
index 99f17617..68008b2f 100644
--- a/altosuilib/AltosInfoTable.java
+++ b/altosuilib/AltosInfoTable.java
@@ -137,6 +137,8 @@ public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar
if (state != null) {
if (state.device_type != AltosLib.MISSING)
info_add_row(0, "Device", "%s", AltosLib.product_name(state.device_type));
+ else if (state.product != null)
+ info_add_row(0, "Device", "%s", state.product);
if (state.altitude() != AltosLib.MISSING)
info_add_row(0, "Altitude", "%6.0f m", state.altitude());
if (state.ground_altitude() != AltosLib.MISSING)