autotest: remove constant in target_component check when downloading mission

This commit is contained in:
Peter Barker 2022-08-26 13:06:03 +10:00 committed by Peter Barker
parent 2e2ffbe4ac
commit 430e52a91b

View File

@ -7574,7 +7574,7 @@ Also, ignores heartbeats not from our target system'''
raise NotAchievedException("Received MISSION_ACK while waiting for MISSION_COUNT")
if m.get_type() != 'MISSION_COUNT':
continue
if m.target_component != 250: # FIXME: constant?!
if m.target_component != self.mav.source_system:
continue
if m.mission_type != mission_type:
raise NotAchievedException("Mission count response of incorrect type")