From e2aaf4c216f8ffa5eb5bf4587e560e6fc23a140b Mon Sep 17 00:00:00 2001 From: Alessandro Apostoli <30294218+yaapu@users.noreply.github.com> Date: Tue, 9 Feb 2021 10:56:28 +0100 Subject: [PATCH] Tools: autotest, fix for frsky not defined error (#4) --- Tools/autotest/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index d99b31625e21b0..54efa5bbc94da3 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -8672,7 +8672,7 @@ def tfp_validate_rpm(self, value): return True - def test_frsky_passthrough_do_wants(self, wants): + def test_frsky_passthrough_do_wants(self, frsky, wants): tstart = self.get_sim_time_cached() while len(wants): @@ -8784,7 +8784,7 @@ def test_frsky_passthrough(self): 0x5003: self.tfp_validate_battery1, 0x5007: self.tfp_validate_params, } - self.test_frsky_passthrough_do_wants(wants) + self.test_frsky_passthrough_do_wants(frsky, wants) # now check RPM: if self.is_plane(): @@ -8795,7 +8795,7 @@ def test_frsky_passthrough(self): wants = { 0x500A: self.tfp_validate_rpm, } - self.test_frsky_passthrough_do_wants(wants) + self.test_frsky_passthrough_do_wants(frsky, wants) self.zero_throttle() if not self.disarm_vehicle(): raise NotAchievedException("Failed to DISARM")