Skip to content

Commit

Permalink
wp: wploader should expect zero points after a clear
Browse files Browse the repository at this point in the history
avoids mission-is-stale messages after clearing mission
  • Loading branch information
peterbarker authored and tridge committed Nov 17, 2023
1 parent 76aea69 commit b577fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MAVProxy/modules/lib/mission_item_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ def cmd_clear(self, args):
self.wploader.clear()
if getattr(self.wploader, 'expected_count', None) is not None:
self.wploader.expected_count = 0
self.wploader.expected_count = 0
self.loading_waypoint_lasttime = time.time()

def cmd_list(self, args):
Expand Down

0 comments on commit b577fcb

Please sign in to comment.