summaryrefslogtreecommitdiff
path: root/altosuilib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-03-26 15:57:59 -0700
committerKeith Packard <keithp@keithp.com>2016-03-26 16:07:20 -0700
commitc61014914c80ad0dba72224109d9b147bb343562 (patch)
tree7cf3ac73e2ba6c0efaad8ff4b777b2fafaa1a2b7 /altosuilib
parent4f8a325949ed3cece4b646c808ad68677b16d1b6 (diff)
altosuilib: Control map debugging output with Serial.debug
This uses the same debug control as the serial output to monitor map downloading Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib')
-rw-r--r--altosuilib/AltosUIMapPreloadNew.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/altosuilib/AltosUIMapPreloadNew.java b/altosuilib/AltosUIMapPreloadNew.java
index c1c3f8bb..4cc99858 100644
--- a/altosuilib/AltosUIMapPreloadNew.java
+++ b/altosuilib/AltosUIMapPreloadNew.java
@@ -189,7 +189,8 @@ public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener
}
public void debug(String format, Object ... arguments) {
- System.out.printf(format, arguments);
+ if (AltosSerial.debug)
+ System.out.printf(format, arguments);
}