updates
This commit is contained in:
10
mipi_test.py
10
mipi_test.py
@@ -364,11 +364,17 @@ def test_worker():
|
||||
resume_event.wait() # block here while mgmt_worker is running
|
||||
if not test_running:
|
||||
break
|
||||
requests.put(URL, json={"state": "on"}, timeout=2)
|
||||
try:
|
||||
requests.put(URL, json={"state": "on"}, timeout=2)
|
||||
except requests.exceptions.RequestException as e:
|
||||
print(f" WARNING: display ON failed: {e}")
|
||||
time.sleep(DISPLAY_SETTLE_S)
|
||||
dual_capture(count)
|
||||
count += 1
|
||||
requests.put(URL, json={"state": "off"}, timeout=2)
|
||||
try:
|
||||
requests.put(URL, json={"state": "off"}, timeout=2)
|
||||
except requests.exceptions.RequestException as e:
|
||||
print(f" WARNING: display OFF failed: {e}")
|
||||
time.sleep(1.0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user