Skip to content

Commit ae3457f

Browse files
committed
usbflash is reliable
1 parent f7a0ab0 commit ae3457f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

board/pedal/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ CFLAGS += "-DALLOW_DEBUG"
2020

2121
usbflash: obj/$(PROJ_NAME).bin
2222
../../tests/pedal/enter_canloader.py
23-
PYTHONPATH=../../ python -c "from python import Panda; p = Panda(); assert(p.bootstub); p.flash('obj/$(PROJ_NAME).bin', reconnect=False)"
23+
sleep 0.5
24+
PYTHONPATH=../../ python -c "from python import Panda; p = [x for x in [Panda(x) for x in Panda.list()] if x.bootstub]; assert(len(p)==1); p[0].flash('obj/$(PROJ_NAME).bin', reconnect=False)"
2425

2526
recover: obj/bootstub.bin obj/$(PROJ_NAME).bin
2627
$(DFU_UTIL) -d 0483:df11 -a 0 -s 0x08004000 -D obj/$(PROJ_NAME).bin

0 commit comments

Comments
 (0)