Skip to content

Commit

Permalink
mip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 7, 2025
1 parent 2cf6b14 commit a2071d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MAVProxy/modules/lib/mission_item_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ def idle_task_check_opaque_id(self):
'''the vehicle may return an identifier for its onboard mission.
Check it against what we think is on the vehicle, emit stale
message if we detect a mismatch'''
if self.opaque.autopilot_id == 0:
# no opaque ID available from autopilot
return
if self.opaque.have_id == self.opaque.autopilot_id:
# reset so we work on things straight away:
self.opaque.mission_stale_warn_time = 0
Expand Down

0 comments on commit a2071d0

Please sign in to comment.