ao-bringup: Clear pending output before setting frequency.
authorKeith Packard <keithp@keithp.com>
Wed, 10 Dec 2014 05:44:53 +0000 (21:44 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 10 Dec 2014 05:44:53 +0000 (21:44 -0800)
Maybe this will unwedge things

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/cal-freq

index 54f7a905b212b509c79531a03e92c9a16cd6f131..5d876e21e9e2ead8179ff20d23a0d98a74ecacd1 100755 (executable)
@@ -37,6 +37,8 @@ while true; do
 
                echo "Programming flash with cal value " $CAL_VALUE
 
+               dd if=$dev iflag=nonblock
+
                cat << EOF > $dev
 c f $CAL_VALUE
 c w