stten6 ok
This commit is contained in:
parent
8668479cfb
commit
c117a4054c
|
|
@ -1,4 +1,4 @@
|
|||
echo on
|
||||
SET mypath=%~dp0
|
||||
cd %mypath%
|
||||
.\venv\Scripts\activate.bat && python -O "./src/main.py" --no-edgetpu --no-tflite
|
||||
.\venv\Scripts\activate.bat && python -O "./src/main.py" --no-edgetpu --no-tflite --no-autotest
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ class USB_586x(Component):
|
|||
max_retry = 3
|
||||
while not ok and retry <max_retry:
|
||||
ret = self.set_bit(byte, bit, val)
|
||||
if ret != ErrorCode.Success and not self.simulate:
|
||||
if ret.value != ErrorCode.Success.value and not self.simulate:
|
||||
self.log.error(f"SET BIT ERROR")
|
||||
self.open_device()
|
||||
retry+=1
|
||||
|
|
|
|||
|
|
@ -38,13 +38,15 @@ class Test_Leak(Test_Test):
|
|||
relay_config = step.spec["relay_config"]
|
||||
if relay_config == 1:
|
||||
ret=self.components["digital_io"].set_bit_verify(0, 0, 1)
|
||||
ret=self.components["digital_io"].set_bit_verify(0, 1, 0)
|
||||
else:
|
||||
ret=self.components["digital_io"].set_bit_verify(0, 0, 0)
|
||||
ret=self.components["digital_io"].set_bit_verify(0, 1, 1)
|
||||
|
||||
if ret:
|
||||
time.sleep(1)
|
||||
# AUTO START SECOND TEST
|
||||
if relay_config == 1:
|
||||
if relay_config == 2:
|
||||
self.start_b.setEnabled(True)
|
||||
self.start_b.click()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user