handle versioning of ihx files (poorly) by just wildcarding the file name,
authorBdale Garbee <bdale@gag.com>
Thu, 9 Sep 2010 23:27:07 +0000 (17:27 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 9 Sep 2010 23:27:07 +0000 (17:27 -0600)
which assumes there's only one matching .. probably ok on Debian?

ao-bringup/turnon_teledongle
ao-bringup/turnon_telemetrum

index 7dbb82b5bbd9335063529b3dd60e1714b57e232d..216afa2a421e8f8a7f2c99827c956ce9dfef2459 100755 (executable)
@@ -42,7 +42,7 @@ read FREQ
 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
+$AOLOAD --cal $CAL_VALUE /usr/share/altos/teledongle-v0.2*.ihx $SERIAL
 
 echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
 echo "Unplug and replug USB, cu to the board, confirm freq and record power"
index 4086a1a8665aa3418bcbe2af2077e283163dc6d5..440eda1bb4ad62b0222f478b85310ba12b97a54e 100755 (executable)
@@ -42,7 +42,7 @@ read FREQ
 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/telemetrum-v1.0.ihx $SERIAL
+$AOLOAD --cal $CAL_VALUE /usr/share/altos/telemetrum-v1.0*.ihx $SERIAL
 
 echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
 echo "Unplug and replug USB, cu to the board, confirm freq and record power"