Skip to content

Commit a2071d0

Browse files
committed
mip fix
1 parent 2cf6b14 commit a2071d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MAVProxy/modules/lib/mission_item_protocol.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ def idle_task_check_opaque_id(self):
365365
'''the vehicle may return an identifier for its onboard mission.
366366
Check it against what we think is on the vehicle, emit stale
367367
message if we detect a mismatch'''
368+
if self.opaque.autopilot_id == 0:
369+
# no opaque ID available from autopilot
370+
return
368371
if self.opaque.have_id == self.opaque.autopilot_id:
369372
# reset so we work on things straight away:
370373
self.opaque.mission_stale_warn_time = 0

0 commit comments

Comments
 (0)