Browse Source

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.
zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
cd1198bf49
  1. 1
      Tools/autotest/common.py

1
Tools/autotest/common.py

@ -2952,6 +2952,7 @@ class AutoTest(ABC): @@ -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,

Loading…
Cancel
Save