mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Tools: autotest: fix infinite hang in wait_statustext
This commit is contained in:
parent
58a128f430
commit
5f315aab59
@ -1580,7 +1580,9 @@ class AutoTest(ABC):
|
|||||||
while self.get_sim_time() < tstart + timeout:
|
while self.get_sim_time() < tstart + timeout:
|
||||||
if the_function is not None:
|
if the_function is not None:
|
||||||
the_function()
|
the_function()
|
||||||
m = self.mav.recv_match(type='STATUSTEXT', blocking=True)
|
m = self.mav.recv_match(type='STATUSTEXT', blocking=True, timeout=0.1)
|
||||||
|
if m is None:
|
||||||
|
continue
|
||||||
if text.lower() in m.text.lower():
|
if text.lower() in m.text.lower():
|
||||||
self.progress("Received expected text : %s" % m.text.lower())
|
self.progress("Received expected text : %s" % m.text.lower())
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user