mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
autotest: use slightly faster recv_msg call in drain_mav
Cuts out some code in pymavlink's recv_match which we don't need here. We even explicitly don't run the idle hooks which pymavlink supplied when we're running under drain_mav
This commit is contained in:
parent
208554d402
commit
bc12a61c9a
@ -2731,7 +2731,7 @@ class AutoTest(ABC):
|
||||
tstart = time.time()
|
||||
timeout = 120
|
||||
failed_to_drain = False
|
||||
while mav.recv_match(blocking=False) is not None:
|
||||
while mav.recv_msg() is not None:
|
||||
count += 1
|
||||
if time.time() - tstart > timeout:
|
||||
# ArduPilot can produce messages faster than we can
|
||||
|
Loading…
Reference in New Issue
Block a user