From 40f77d324d361160faa485c1a21cf4e2dacd1523 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 15 Dec 2025 11:30:45 -0800 Subject: [PATCH] better output --- control_iperf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/control_iperf.py b/control_iperf.py index 71c4e65..c0221c8 100755 --- a/control_iperf.py +++ b/control_iperf.py @@ -179,7 +179,11 @@ async def async_main(args, devices): # Give a brief moment for all serial ports to open and "settle" await asyncio.sleep(0.5) - print(">>> TRIGGERING ALL DEVICES <<<") + if len(devices) > 1: + print(f">>> TRIGGERING {len(devices)} DEVICES <<<") + else: + print(f">>> TRIGGERING {devices[0]} <<<") + sync_event.set() # Unblocks all devices instantly results = await asyncio.gather(*tasks)