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 /altosui | |
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 'altosui')
-rw-r--r-- | altosui/AltosInfoTable.java | 2 |
1 files changed, 2 insertions, 0 deletions
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) |