altosui: Remove debug printf.
[fw/altos] / altosui / AltosFlightUI.java
index 23a62e958200771a14c09e452b45c442490e553c..b4445992340e3ceef79a460b1145cafbb3f242b3 100644 (file)
@@ -115,11 +115,8 @@ public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay {
 
                JComponent tab = which_tab(state);
                if (tab != cur_tab) {
-                       System.out.printf("checking tab for state %s\n", AltosLib.state_name(state.state()));
-                       if (cur_tab == pane.getSelectedComponent()) {
-                               System.out.printf("switch tabs\n");
+                       if (cur_tab == pane.getSelectedComponent())
                                pane.setSelectedComponent(tab);
-                       }
                        cur_tab = tab;
                }
 
@@ -147,7 +144,7 @@ public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay {
                        }
                }
 
-               if (state.gps != null && state.gps.connected) {
+               if (state.gps != null) {
                        if (!has_map) {
                                pane.add("Site Map", sitemap);
                                has_map = true;