From 3cf1b9444f59fd45527c05cc83c1cdcc322d1ab3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 17 Feb 2021 23:08:36 +1100 Subject: [PATCH] autotest: get_sim_time_cached in NMEA output test to stop losing msgs --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 4a3fb17ba4..bfffd63455 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -8487,7 +8487,7 @@ switch value''' raise NotAchievedException("Did not receive GPS_RAW_INT") tstart = self.get_sim_time() while True: - now = self.get_sim_time() + now = self.get_sim_time_cached() if now - tstart > 20: raise NotAchievedException("NMEA output not updating?!") gps2 = self.mav.recv_match(type="GPS2_RAW", blocking=True, timeout=1)