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) {
setting, telemetry_len());
else
printf("c R %d\nc r 0\n", setting);
+ flush_output();
}
}