diff options
| author | hathach <[email protected]> | 2023-12-13 19:18:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-12-13 19:18:08 +0700 |
| commit | 31c33ca8530ed1115a956b39c853dceb56d307db (patch) | |
| tree | 0ccdba08719a0b5faa076e70ae06803bd7510fa6 /test | |
| parent | b343ac6d0f687af917ba7c9861c017c000166f0d (diff) | |
tweak usb reset wait time, fix test script with IAR server
Diffstat (limited to 'test')
| -rw-r--r-- | test/hil/hil_test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index f9611b96e..00751181e 100644 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -34,8 +34,11 @@ import subprocess import json import glob -# for RPI double reset: install sudo apt install python3-gpiozero or sudo pip install gpiozero -from gpiozero import LED +# for RPI double reset +try: + import gpiozero +except ImportError: + pass ENUM_TIMEOUT = 10 @@ -141,7 +144,7 @@ def flash_esptool(board, firmware): def doublereset_with_rpi_gpio(board): # Off = 0 = Reset - led = LED(board["flasher_reset_pin"]) + led = gpiozero.LED(board["flasher_reset_pin"]) led.off() time.sleep(0.1) |
