projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snapshot TeleMega v4 turnon and test scripts before crafting v5 versions
[fw/altos]
/
ao-bringup
/
turnon_chaoskey
diff --git
a/ao-bringup/turnon_chaoskey
b/ao-bringup/turnon_chaoskey
index d710e5ff19a89fda20da27b6f86c47372cf4f137..9ad809122bd847139239ebc77d10b56a1886c96f 100755
(executable)
--- a/
ao-bringup/turnon_chaoskey
+++ b/
ao-bringup/turnon_chaoskey
@@
-1,7
+1,7
@@
#!/bin/sh
#!/bin/sh
-if [ -x
/usr/bin/dfu-util
]; then
- DFU_UTIL=
/usr/bin/dfu-util
+if [ -x
`which dfu-util`
]; then
+ DFU_UTIL=
`which dfu-util`
else
echo "Can't find dfu-util! Aborting."
exit 1
else
echo "Can't find dfu-util! Aborting."
exit 1
@@
-33,7
+33,7
@@
$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true
#$USBLOAD --serial=1 $ALTOS_FILE || exit 1
#$USBLOAD --serial=1 $ALTOS_FILE || exit 1
-sleep
1
+sleep
3
./test-chaoskey
./test-chaoskey