From cdeefaba7d5ef69f28e5dfb152c5f185f8b85f2e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 16 Jun 2015 23:42:59 -0700 Subject: [PATCH] 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 --- altosuilib/AltosInfoTable.java | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2