Looking for larger than 255 numbers

This commit is contained in:
Jason Short 2012-01-04 09:51:36 -08:00
parent 3cf77729ef
commit fa2d84e557

View File

@ -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: