8000 Add device ID to autoflash script. · hellcoderz/micropython@a0ddae8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0ddae8

Browse files
author
Craig Barnes
committed
Add device ID to autoflash script.
1 parent b37c0a1 commit a0ddae8

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