altoslib: Create AltosProgrammer class
[fw/altos] / altosui / AltosInfoTable.java
index d7871aa6b61bc3cc390bde0d9ad59926c8597d89..feafed21f32a852e0ecf3d8cec954fe65a97ed21 100644 (file)
@@ -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)
@@ -141,10 +143,6 @@ public class AltosInfoTable extends JTable {
 
                if (state != null) {
                        if (state.gps == null || !state.gps.connected) {
-                               if (state.gps == null)
-                                       System.out.printf ("null gps\n");
-                               else
-                                       System.out.printf ("not connected gps\n");
                                info_add_row(1, "GPS", "not available");
                        } else {
                                if (state.gps_ready)