altosui: Use letter names for pyro channels in pyro config UI
authorKeith Packard <keithp@keithp.com>
Fri, 31 Jan 2014 02:38:01 +0000 (18:38 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 31 Jan 2014 02:39:39 +0000 (18:39 -0800)
TeleMega has the extra pyro channels labeled A, B, C, D instead of 0,
1, 2, 3. Use those names in the UI to avoid confusion.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosConfigPyroUI.java

index 47b2b662bb5ac7b49d4804527384cfc2feb85599..b14c39ab86e1c5ea2f0ca74d92194003d66394a3 100644 (file)
@@ -232,7 +232,7 @@ public class AltosConfigPyroUI
                        c.fill = GridBagConstraints.NONE;
                        c.anchor = GridBagConstraints.CENTER;
                        c.insets = il;
                        c.fill = GridBagConstraints.NONE;
                        c.anchor = GridBagConstraints.CENTER;
                        c.insets = il;
-                       label = new JLabel(String.format("Pyro Channel %d", channel));
+                       label = new JLabel(String.format("Pyro Channel %c", 'A' + channel));
                        pane.add(label, c);
                        y++;
 
                        pane.add(label, c);
                        y++;