summaryrefslogtreecommitdiff
path: root/altosui/AltosSerial.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-08 20:38:14 -0700
committerKeith Packard <keithp@keithp.com>2011-08-08 20:38:14 -0700
commit7146311d9df541e075b4450cf9656a9aa7ffdd93 (patch)
treef97315a2e7718e9c9effc02640d859dbef6a858e /altosui/AltosSerial.java
parent2662c577a895c96fce7b2bf815b9e752d2dfbde6 (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosSerial.java')
-rw-r--r--altosui/AltosSerial.java3
1 files changed, 2 insertions, 1 deletions
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) {