Skip to content

Commit 8b96d3f

Browse files
committed
Merge pull request #53 from jmacgithu/FixMPStatusAttributeError
fixed the error "AttributeError: 'MPStatus' object has no attribute
2 parents b4c0c01 + 4141727 commit 8b96d3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

droneapi/module/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,11 @@ def __init__(self, mpstate):
386386

387387
def fix_targets(self, message):
388388
"""Set correct target IDs for our vehicle"""
389-
status = self.mpstate.status
389+
settings = self.mpstate.settings
390390
if hasattr(message, 'target_system'):
391-
message.target_system = status.target_system
391+
message.target_system = settings.target_system
392392
if hasattr(message, 'target_component'):
393-
message.target_component = status.target_component
393+
message.target_component = settings.target_component
394394

395395
def __on_change(self, *args):
396396
for a in args:

0 commit comments

Comments
 (0)