altosui: Flush radio setting to serial device
authorKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 01:53:27 +0000 (18:53 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 01:53:27 +0000 (18:53 -0700)
When changing frequencies, make sure the device hears about it.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosSerial.java

index c0eeb92084a446a1e1537b65dd3117f0a73ce076..5d4510b46679ff89cdf138ee47fc0f0e21426321 100644 (file)
@@ -348,6 +348,7 @@ public class AltosSerial implements Runnable {
                                       setting, telemetry_len());
                        else
                                printf("c R %d\nc r 0\n", setting);
+                       flush_output();
                }
        }