projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix text since TM only has one led to blink
[fw/altos]
/
ao-bringup
/
turnon_teledongle
diff --git
a/ao-bringup/turnon_teledongle
b/ao-bringup/turnon_teledongle
index ea7a7b2aec1cf937d0eef210dd23c1118e1850cf..7dbb82b5bbd9335063529b3dd60e1714b57e232d 100755
(executable)
--- 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
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
echo "Programming flash with cal value " $CAL_VALUE
$AOLOAD --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2.ihx $SERIAL