fix variation
This commit is contained in:
@ -69,7 +69,10 @@ def example_variation_mode(port: str = None):
|
||||
}
|
||||
)
|
||||
print("Variation task started. Collecting data for 2 s...")
|
||||
time.sleep(2)
|
||||
deadline = time.monotonic() + 2.0
|
||||
while time.monotonic() < deadline:
|
||||
ctrl.get_measurements()
|
||||
time.sleep(0.15)
|
||||
|
||||
ctrl.stop_task()
|
||||
print(f"Done. Collected {len(collected)} measurements.")
|
||||
|
||||
Reference in New Issue
Block a user