From: Bdale Garbee Date: Sat, 13 Sep 2014 23:56:51 +0000 (-0600) Subject: store cal value correctly even when we didn't need to change it X-Git-Tag: bdale-altosdroid~20 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=22661ba69b8919116092382f1f5aa0dc79d02cc9 store cal value correctly even when we didn't need to change it --- diff --git a/ao-bringup/cal-freq b/ao-bringup/cal-freq index 68a8ebf2..54f7a905 100755 --- a/ao-bringup/cal-freq +++ b/ao-bringup/cal-freq @@ -19,16 +19,17 @@ while true; do echo 'C 0' > $dev + calline=`./get-radio-cal $dev` + CURRENT_CAL=`echo $calline | awk '{print $2}'` + CURRENT_FREQ=`echo $calline | awk '{print $4}'` + CAL_VALUE=$CURRENT_CAL + case "$FREQ" in "") echo $SERIAL","$CAL_VALUE >> cal_values exit 0 ;; *) - calline=`./get-radio-cal $dev` - CURRENT_CAL=`echo $calline | awk '{print $2}'` - CURRENT_FREQ=`echo $calline | awk '{print $4}'` - echo "Current radio calibration "$CURRENT_CAL echo "Current radio frequency "$CURRENT_FREQ