summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 00:14:14 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 00:14:14 +0100
commit5d89c4022b1409e1f6cad64c988d4ccd74e170d6 (patch)
treeab4cb9636b5835ce0410df7a8a3c84afe49157c4
parentd9f4deef8cbcbeeeaeefebfc53072d83e5bfddc3 (diff)
parenta0ddae86e55f0df5229aaf82e6a713acd3a561a4 (diff)
downloadmicropython-5d89c4022b1409e1f6cad64c988d4ccd74e170d6.tar.gz
micropython-5d89c4022b1409e1f6cad64c988d4ccd74e170d6.zip
Merge pull request #549 from cjbarnes18/autoflash_device
Add device ID to autoflash script.
-rwxr-xr-xstmhal/autoflash3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/autoflash b/stmhal/autoflash
index dc28a97e29..d2240ccb55 100755
--- a/stmhal/autoflash
+++ b/stmhal/autoflash
@@ -8,6 +8,7 @@
# - run a terminal
SERIAL=/dev/ttyACM0
+DEVICE=0483:df11
while true; do
echo "waiting for DFU device..."
@@ -19,7 +20,7 @@ while true; do
done
echo "found DFU device, flashing"
- dfu-util -a 0 -D build/flash.dfu
+ dfu-util -a 0 -d $DEVICE -D build/flash.dfu
echo "waiting for DFU to exit..."
while true; do