summaryrefslogtreecommitdiff
path: root/ao-bringup
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2010-03-30 23:15:32 -0600
committerBdale Garbee <bdale@gag.com>2010-03-30 23:15:32 -0600
commitb41e617080fe825f7810ee5eee52ea37f7618ec6 (patch)
tree5ccef7a1ed75625690550cd0b9787da437ee117f /ao-bringup
parent28e40ccfcd80ab8764d4aa235257cea4d193a0c1 (diff)
parentdf7bda1f32b0049c3878c325ea0b55999f3980e3 (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Conflicts: ChangeLog
Diffstat (limited to 'ao-bringup')
-rwxr-xr-xao-bringup/turnon_teledongle2
1 files changed, 1 insertions, 1 deletions
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