From: Keith Packard Date: Sat, 26 Mar 2016 22:57:59 +0000 (-0700) Subject: altosuilib: Control map debugging output with Serial.debug X-Git-Tag: 1.6.3~2^2~74 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c61014914c80ad0dba72224109d9b147bb343562;hp=4f8a325949ed3cece4b646c808ad68677b16d1b6 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 --- 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); }