projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/master'
[fw/altos]
/
ao-bringup
/
turnon_teledongle
diff --git
a/ao-bringup/turnon_teledongle
b/ao-bringup/turnon_teledongle
index 1786f25134b737bcadb7f664d49e7a57648b6ea8..97c1e419b981bc6086a16e5f734914321268b164 100755
(executable)
--- a/
ao-bringup/turnon_teledongle
+++ b/
ao-bringup/turnon_teledongle
@@
-19,7
+19,7
@@
sleep 5
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
ao-load --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2.ihx $SERIAL
echo "Programming flash with cal value " $CAL_VALUE
ao-load --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2.ihx $SERIAL