Skip to content

Commit

Permalink
Tools: autotest, fix for frsky not defined error (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaapu authored and peterbarker committed Feb 9, 2021
1 parent d9dd93b commit e2aaf4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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():
Expand All @@ -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")
Expand Down

0 comments on commit e2aaf4c

Please sign in to comment.