diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-27 00:12:01 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-27 00:12:01 -0700 |
commit | 91a75279b6d306ba9d068a28c64917d5312122e8 (patch) | |
tree | 8d3885d6f76f54c01fbb733239ac2a3f609a54b7 /altosui/AltosFlightUI.java | |
parent | 7ce8c9081e703d1405c2595ab9bda0cfa218c6c4 (diff) |
altosui: Off-by-one error in telemetry format configuration UI
The telemetry format menu uses 0 for full and 1 for tiny, but the
telemetry configuration uses 1 for full and 2 for tiny. One direction
(config to UI) was right, the other (UI to config) was wrong.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightUI.java')
-rw-r--r-- | altosui/AltosFlightUI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosFlightUI.java b/altosui/AltosFlightUI.java index 286b2a4e..66dcdad5 100644 --- a/altosui/AltosFlightUI.java +++ b/altosui/AltosFlightUI.java @@ -162,7 +162,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { telemetries.setMaximumRowCount(2); telemetries.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - int telemetry = telemetries.getSelectedIndex(); + int telemetry = telemetries.getSelectedIndex() + 1; reader.set_telemetry(telemetry); } }); |