8000 Merge pull request #549 from cjbarnes18/autoflash_device · hellcoderz/micropython@5d89c40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d89c40

Browse files
committed
Merge pull request micropython#549 from cjbarnes18/autoflash_device
Add device ID to autoflash script.
2 parents d9f4dee + a0ddae8 commit 5d89c40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stmhal/autoflash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# - run a terminal
99

1010
SERIAL=/dev/ttyACM0
11+
DEVICE=0483:df11
1112

1213
while true; do
1314
echo "waiting for DFU device..."
@@ -19,7 +20,7 @@ while true; do
1920
done
2021

2122
echo "found DFU device, flashing"
22-
dfu-util -a 0 -D build/flash.dfu
23+
dfu-util -a 0 -d $DEVICE -D build/flash.dfu
2324

2425
echo "waiting for DFU to exit..."
2526
while true; do

0 commit comments

Comments
 (0)
0