X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao-bringup%2Fturnon_teledongle;fp=ao-bringup%2Fturnon_teledongle;h=7dbb82b5bbd9335063529b3dd60e1714b57e232d;hp=ea7a7b2aec1cf937d0eef210dd23c1118e1850cf;hb=b41e617080fe825f7810ee5eee52ea37f7618ec6;hpb=28e40ccfcd80ab8764d4aa235257cea4d193a0c1 diff --git a/ao-bringup/turnon_teledongle b/ao-bringup/turnon_teledongle index ea7a7b2a..7dbb82b5 100755 --- a/ao-bringup/turnon_teledongle +++ b/ao-bringup/turnon_teledongle @@ -39,7 +39,7 @@ $RAWLOAD -r ao_radio_xmit.ihx echo -n "Generating RF carrier. Please enter measured frequency: " read FREQ -CAL_VALUE=`nickle -e "ceil(434.55 / $FREQ * 1186611)"` +CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"` echo "Programming flash with cal value " $CAL_VALUE $AOLOAD --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2.ihx $SERIAL