From cd1198bf49709d1904f5391f71b63ade795842a6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 24 Jun 2020 13:15:24 +1000 Subject: [PATCH] autotest: drain mav before attempting to run a command We're losing an arbitrary amount of data while getting the ACK, so it's fine to lose whatever is in the buffer. --- Tools/autotest/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index f7c98fee4f..9f4221bbb5 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -2952,6 +2952,7 @@ class AutoTest(ABC): target_compid=None, timeout=10, quiet=False): + self.drain_mav_unparsed() self.get_sim_time() # required for timeout in run_cmd_get_ack to work self.send_cmd(command, p1,