summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-25 21:29:50 -0700
committerKeith Packard <keithp@keithp.com>2011-03-25 21:29:50 -0700
commitdea80af81b388cc3d7073444919f4e98b12fa730 (patch)
tree16444aabd3cad90d6a97e1dcd3b1cf6f7695736c
parent7f5b5848ad6ef5c808638a29c3dc0101b56ed11e (diff)
altosui: Remove a bunch of debug printfs from the eeprom manager code
Just noise on stdout. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosEepromDelete.java3
-rw-r--r--altosui/AltosEepromList.java7
-rw-r--r--altosui/AltosEepromLog.java7
-rw-r--r--altosui/AltosEepromManage.java1
-rw-r--r--altosui/AltosEepromSelect.java3
5 files changed, 0 insertions, 21 deletions
diff --git a/altosui/AltosEepromDelete.java b/altosui/AltosEepromDelete.java
index c95eda15..ecd82c18 100644
--- a/altosui/AltosEepromDelete.java
+++ b/altosui/AltosEepromDelete.java
@@ -49,11 +49,9 @@ public class AltosEepromDelete implements Runnable {
*/
serial_line.flush_input();
serial_line.printf("d %d\n", log.flight);
- System.out.printf("Attempt to delete flight %d\n", log.flight);
for (;;) {
/* It can take a while to erase the flash... */
String line = serial_line.get_reply(20000);
- System.out.printf("got back line %s\n", line);
if (line == null)
throw new TimeoutException();
if (line.equals("Erased"))
@@ -96,7 +94,6 @@ public class AltosEepromDelete implements Runnable {
DeleteLog(log);
}
}
- System.out.printf("All flights successfully deleted\n");
success = true;
} catch (IOException ee) {
show_error (ee.getLocalizedMessage(),
diff --git a/altosui/AltosEepromList.java b/altosui/AltosEepromList.java
index a932dd12..575c0bc2 100644
--- a/altosui/AltosEepromList.java
+++ b/altosui/AltosEepromList.java
@@ -83,7 +83,6 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {
if (line.contains("Syntax"))
continue;
String[] tokens = line.split("\\s+");
- System.out.printf("got line %s (%d tokens)\n", line, tokens.length);
if (tokens.length < 6)
break;
@@ -95,7 +94,6 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {
start = AltosParse.parse_hex(tokens[3]);
if (tokens[4].equals("end"))
end = AltosParse.parse_hex(tokens[5]);
- System.out.printf("parsed flight %d %x %x\n", flight, start, end);
if (flight > 0 && start >= 0 && end > 0)
flights.add(new AltosEepromFlight(flight, start, end));
} catch (ParseException pe) { System.out.printf("Parse error %s\n", pe.toString()); }
@@ -115,7 +113,6 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {
* firmware, this will also extract the flight number.
*/
for (AltosEepromFlight flight : flights) {
- System.out.printf("Scanning flight %d %x %x\n", flight.flight, flight.start, flight.end);
add(new AltosEepromLog(serial_line, config_data.serial,
flight.start, flight.end));
}
@@ -124,9 +121,5 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {
serial_line.stop_remote();
serial_line.flush_output();
}
- for (int i = 0; i < size(); i++) {
- AltosEepromLog l = get(i);
- System.out.printf("Found flight %d at %x - %x\n", l.flight, l.start_block, l.end_block);
- }
}
} \ No newline at end of file
diff --git a/altosui/AltosEepromLog.java b/altosui/AltosEepromLog.java
index f284f103..10befad4 100644
--- a/altosui/AltosEepromLog.java
+++ b/altosui/AltosEepromLog.java
@@ -103,12 +103,5 @@ public class AltosEepromLog {
if (has_gps && has_flight)
break;
}
- System.out.printf("Serial %d start block %d end block %d\n",
- serial, start_block, end_block);
- if (has_flight)
- System.out.printf("Flight %d\n", flight);
- if (has_gps)
- System.out.printf("%d-%d-%d %d:%02d:%02d Lat %f Lon %f\n",
- year, month, day, hour, minute, second, lat, lon);
}
}
diff --git a/altosui/AltosEepromManage.java b/altosui/AltosEepromManage.java
index d10f7954..b12d95fa 100644
--- a/altosui/AltosEepromManage.java
+++ b/altosui/AltosEepromManage.java
@@ -69,7 +69,6 @@ public class AltosEepromManage implements ActionListener {
boolean success = e.getID() != 0;
boolean running = false;
- System.out.printf("Eeprom manager action %s %d\n", cmd, e.getID());
if (cmd.equals("download")) {
if (success) {
if (any_delete) {
diff --git a/altosui/AltosEepromSelect.java b/altosui/AltosEepromSelect.java
index a3069f06..cb71524d 100644
--- a/altosui/AltosEepromSelect.java
+++ b/altosui/AltosEepromSelect.java
@@ -35,13 +35,10 @@ class AltosEepromItem implements ActionListener {
JCheckBox delete;
public void actionPerformed(ActionEvent e) {
- System.out.printf("eeprom item action %s %d\n", e.getActionCommand(), e.getID());
if (e.getSource() == download) {
log.download = download.isSelected();
- System.out.printf("download for flight %d set to %b\n", log.flight, log.download);
} else if (e.getSource() == delete) {
log.delete = delete.isSelected();
- System.out.printf("delete for flight %d set to %b\n", log.flight, log.delete);
}
}