From: Keith Packard Date: Tue, 9 Aug 2011 03:38:14 +0000 (-0700) Subject: altosui: Reading serial from swing thread only bad if remote X-Git-Tag: 0.9.6.0~46 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=7146311d9df541e075b4450cf9656a9aa7ffdd93 altosui: Reading serial from swing thread only bad if remote Make the warning on this condition based on whether the link is remote. Signed-off-by: Keith Packard --- diff --git a/altosui/AltosSerial.java b/altosui/AltosSerial.java index 5d4510b4..5e496d7f 100644 --- a/altosui/AltosSerial.java +++ b/altosui/AltosSerial.java @@ -217,7 +217,8 @@ public class AltosSerial implements Runnable { if (SwingUtilities.isEventDispatchThread()) { can_cancel = false; - System.out.printf("Uh-oh, reading serial device from swing thread\n"); + if (remote) + System.out.printf("Uh-oh, reading remote serial device from swing thread\n"); } flush_output(); if (remote && can_cancel) {