Skip to content

Commit

Permalink
mavproxy_wp: allow missions of length 2 to be drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jul 22, 2023
1 parent 591945a commit a5840e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_wp.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def get_home(self):

def wp_draw_callback(self, points):
'''callback from drawing waypoints'''
if len(points) < 3:
if len(points) < 2:
return
self.wploader.target_system = self.target_system
self.wploader.target_component = self.target_component
Expand Down

0 comments on commit a5840e0

Please sign in to comment.