Browse Source

Looking for larger than 255 numbers

master
Jason Short 13 years ago
parent
commit
fa2d84e557
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -206,7 +206,7 @@ def wait_waypoint(mav, wpnum_start, wpnum_end, allow_skip=True, max_dist=2, time @@ -206,7 +206,7 @@ def wait_waypoint(mav, wpnum_start, wpnum_end, allow_skip=True, max_dist=2, time
if (current_wp == wpnum_end and wp_dist < max_dist):
print("Reached final waypoint %u" % seq)
return True
if (current_wp == 255):
if (seq >= 255):
print("Reached final waypoint %u" % seq)
return True
if seq > current_wp+1:

Loading…
Cancel
Save