From c61014914c80ad0dba72224109d9b147bb343562 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 26 Mar 2016 15:57:59 -0700 Subject: [PATCH] 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 --- altosuilib/AltosUIMapPreloadNew.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2