From bcf63326ea4fa1ebc74813f4b4adaff74dfb3f70 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 29 Apr 2024 17:01:08 +1000 Subject: [PATCH] autotest: install hook in context busted sanity check allowed this to survive --- Tools/autotest/arduplane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index c09fb594c8cdb..1b0448957dfe4 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -3013,7 +3013,7 @@ def record_maxalt(mav, m): if m.relative_alt/1000.0 > max_alt: max_alt = m.relative_alt/1000.0 - self.install_message_hook(record_maxalt) + self.install_message_hook_context(record_maxalt) self.fly_mission_waypoints(num_wp-1, mission_timeout=600)