altosui: Match against basestations when determining remote
[fw/altos] / altosui / AltosIgniteUI.java
index 0d848ab86fea079e2c39780f9eecf03533b678e6..9f2f15dab9fc05fd42e27ce3cf74579dba14ad94 100644 (file)
@@ -65,7 +65,7 @@ public class AltosIgniteUI
                }
 
                Igniter(AltosIgniteUI ui, String label, String name, int y) {
-                       Container               pane = getContentPane();
+                       Container               pane = getScrollablePane();
                        GridBagConstraints      c = new GridBagConstraints();
                        Insets                  i = new Insets(4,4,4,4);
 
@@ -127,7 +127,7 @@ public class AltosIgniteUI
                public void run () {
                        try {
                                ignite = new AltosIgnite(link,
-                                                        !device.matchProduct(Altos.product_altimeter));
+                                                        device.matchProduct(Altos.product_basestation));
 
                        } catch (Exception e) {
                                send_exception(e);
@@ -388,7 +388,7 @@ public class AltosIgniteUI
        private void make_ui() {
                group = new ButtonGroup();
 
-               Container               pane = getContentPane();
+               Container               pane = getScrollablePane();
 
                GridBagConstraints      c = new GridBagConstraints();
                Insets                  i = new Insets(4,4,4,4);