From 2449d123690746d0d0d5d66dfc4d3a05b9f5dc0c Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 6 Sep 2013 18:24:46 -0700 Subject: 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 --- altosui/AltosInfoTable.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'altosui/AltosInfoTable.java') diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java index b181dbd9..feafed21 100644 --- a/altosui/AltosInfoTable.java +++ b/altosui/AltosInfoTable.java @@ -107,6 +107,8 @@ public class AltosInfoTable extends JTable { public void show(AltosState state, AltosListenerState listener_state) { info_reset(); if (state != null) { + if (state.device_type != AltosLib.MISSING) + info_add_row(0, "Device", "%s", AltosLib.product_name(state.device_type)); if (state.altitude() != AltosLib.MISSING) info_add_row(0, "Altitude", "%6.0f m", state.altitude()); if (state.ground_altitude() != AltosLib.MISSING) -- cgit v1.2.3