summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-09 21:44:53 -0800
committerKeith Packard <keithp@keithp.com>2014-12-09 21:44:53 -0800
commitcf09ee2a4b093c56b64260c3db3f5e07143aa888 (patch)
treeab942f114a6f9ac288abeb9dc60fb2097bea9de6
parent5b7ec0c69343db3793c0317939b5eff1f2d04752 (diff)
ao-bringup: Clear pending output before setting frequency.
Maybe this will unwedge things Signed-off-by: Keith Packard <keithp@keithp.com>
-rwxr-xr-xao-bringup/cal-freq2
1 files changed, 2 insertions, 0 deletions
diff --git a/ao-bringup/cal-freq b/ao-bringup/cal-freq
index 54f7a905..5d876e21 100755
--- a/ao-bringup/cal-freq
+++ b/ao-bringup/cal-freq
@@ -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