File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 9696 run : |
9797 for port in $(lspci | grep USB | cut -d' ' -f1); do
9898 echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
99- sleep 1 ;
99+ sleep 0.5 ;
100100 echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
101- sleep 1 ;
101+ sleep 3 ;
102102 done
103103
104104 - name : Test on actual hardware
Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ jobs:
148148 run : |
149149 for port in $(lspci | grep USB | cut -d' ' -f1); do
150150 echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
151- sleep 1 ;
151+ sleep 0.5 ;
152152 echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
153- sleep 1 ;
153+ sleep 3 ;
154154 done
155155
156156 - name : Test on actual hardware
Original file line number Diff line number Diff line change 3434import json
3535import glob
3636
37- # for RPI double reset: install sudo apt install python3-gpiozero or sudo pip install gpiozero
38- from gpiozero import LED
37+ # for RPI double reset
38+ try :
39+ import gpiozero
40+ except ImportError :
41+ pass
3942
4043
4144ENUM_TIMEOUT = 10
@@ -141,7 +144,7 @@ def flash_esptool(board, firmware):
141144
142145def doublereset_with_rpi_gpio (board ):
143146 # Off = 0 = Reset
144- led = LED (board ["flasher_reset_pin" ])
147+ led = gpiozero . LED (board ["flasher_reset_pin" ])
145148
146149 led .off ()
147150 time .sleep (0.1 )
You can’t perform that action at this time.
0 commit comments