From 937d7bf33582f8de460a4a0801f882f81ec7e348 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 25 Sep 2020 21:13:38 +1000 Subject: [PATCH] autotest: add quiet option to drain_mav --- Tools/autotest/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 2fd83eab3b..f5a79ac712 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -1674,6 +1674,8 @@ class AutoTest(ABC): tstart = time.time() while mav.recv_match(blocking=False) is not None: count += 1 + if quiet: + return tdelta = time.time() - tstart if tdelta == 0: rate = "instantly"