diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-05-04 15:02:00 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-05-04 15:02:37 +0200 |
commit | 5f786af8fa428c8ab684251310de6c3fbe795e8f (patch) | |
tree | b31eec305b0b47d4f83de44c51f498d1971d8125 | |
parent | 0e31b5935ebefef3b95d7e39dbf5b1435a4942a1 (diff) | |
download | px4-firmware-5f786af8fa428c8ab684251310de6c3fbe795e8f.tar.gz px4-firmware-5f786af8fa428c8ab684251310de6c3fbe795e8f.tar.bz2 px4-firmware-5f786af8fa428c8ab684251310de6c3fbe795e8f.zip |
mavlink: status is a pointer
-rw-r--r-- | src/modules/mavlink/mavlink_messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index ab733e442..bef8a5a55 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -823,7 +823,7 @@ protected: (void)pos_sp_triplet_sub->update(t); (void)status_sub->update(t); - if (updated && (status.arming_state == ARMING_STATE_ARMED)) { + if (updated && (status->arming_state == ARMING_STATE_ARMED)) { /* translate the current syste state to mavlink state and mode */ uint8_t mavlink_state; uint8_t mavlink_base_mode; |