diff options
| author | Craig Barnes | 2014-05-02 23:03:23 +0100 |
|---|---|---|
| committer | Craig Barnes | 2014-05-02 23:03:23 +0100 |
| commit | a0ddae86e55f0df5229aaf82e6a713acd3a561a4 (patch) | |
| tree | 945afc28656cf771760c5a64fbdec1de235f2032 | |
| parent | b37c0a116ec723c0628a058130c26239c9ec7724 (diff) | |
Add device ID to autoflash script.
| -rwxr-xr-x | stmhal/autoflash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/autoflash b/stmhal/autoflash index dc28a97e2..d2240ccb5 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 |
