altosui: Remove some debug printfs
authorKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 21:36:04 +0000 (13:36 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 21:36:04 +0000 (13:36 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosIdleMonitor.java
altoslib/AltosMs5607.java
altosui/AltosIdleMonitorUI.java

index c816c202cc44533463a7763fb943fe9219e938fe..d9d71143a0f5f4fea10ea535e00498fcc5e2fdd6 100644 (file)
@@ -91,14 +91,11 @@ public class AltosIdleMonitor extends Thread {
        }
 
        public void abort() throws InterruptedException {
-               System.out.printf("Attempting to abort monitor thread\n");
                while (isAlive()) {
-                       System.out.printf("Interrupting\n");
                        interrupt();
                        link.abort_reply();
                        Thread.sleep(100);
                }
-               System.out.printf("Appears to be dead now\n");
                join();
        }
 
index 23d65ea9c07be5ca2f5ed9490af485df9d4555d7..2319d5b821b833becd9cd72c37b796caca051aa6 100644 (file)
@@ -85,12 +85,10 @@ public class AltosMs5607 {
        }
 
        public boolean parse_line(String line) {
-               System.out.printf ("parse %s\n", line);
                String[] items = line.split("\\s+");
                if (line.startsWith("Pressure:")) {
                        if (items.length >= 2) {
                                raw_pres = Integer.parseInt(items[1]);
-                               System.out.printf ("raw_pres %d\n", raw_pres);
                        }
                } else if (line.startsWith("Temperature:")) {
                        if (items.length >= 2)
@@ -99,10 +97,8 @@ public class AltosMs5607 {
                        if (items.length >= 3)
                                reserved = Integer.parseInt(items[2]);
                } else if (line.startsWith("ms5607 sens:")) {
-                       System.out.printf ("found sens length %d\n", items.length);
                        if (items.length >= 3) {
                                sens = Integer.parseInt(items[2]);
-                               System.out.printf ("sens %d\n", sens);
                        }
                } else if (line.startsWith("ms5607 off:")) {
                        if (items.length >= 3)
@@ -156,13 +152,9 @@ public class AltosMs5607 {
                                throw new TimeoutException();
                        }
                        if (!parse_line(line)) {
-                               System.out.printf ("stop parsing at %s\n", line);
                                break;
                        }
                }
-               System.out.printf ("sens %d off %d tcs %d tco %d tref %d tempsens %d crc %d pres %d temp %d\n",
-                                  sens, off, tcs, tco, tref, tempsens, crc, raw_pres, raw_temp);
                convert();
-               System.out.printf ("pa %d cc %d\n", pa, cc);
        }
 }
index 6da920e29cb89e30f90338cc7e8fef9f74c7ca4a..6a79604efff6b33f894ebaba09e111c652befb9d 100644 (file)
@@ -195,13 +195,11 @@ public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDispl
                addWindowListener(new WindowAdapter() {
                                @Override
                                public void windowClosing(WindowEvent e) {
-                                       System.out.printf("Closing idle monitor window\n");
                                        try {
                                                disconnect();
                                        } catch (Exception ex) {
                                                System.out.println(Arrays.toString(ex.getStackTrace()));
                                        }
-                                       System.out.printf("hiding\n");
                                        setVisible(false);
                                        dispose();
                                        AltosUIPreferences.unregister_font_listener(AltosIdleMonitorUI.this);