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.
This commit is contained in:
Peter Barker 2020-06-24 13:15:24 +10:00 committed by Peter Barker
parent d0b97b89e7
commit cd1198bf49

View File

@ -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,