diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-21 17:41:13 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-21 17:41:13 +0100 |
commit | 02fdd48a477853a2f54c7954478a3ce5b5b3f497 (patch) | |
tree | eb343bc778c9359755865127e859f80bbfef184c /src/platforms | |
parent | 2a2594a1717a5067ac1f209974851f9512e46415 (diff) | |
download | px4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.tar.gz px4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.tar.bz2 px4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.zip |
publisher: use wrapper message type
Diffstat (limited to 'src/platforms')
-rw-r--r-- | src/platforms/px4_publisher.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index 6d75e28fc..0c8dd62ba 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -126,10 +126,10 @@ public: /** Publishes msg * @param msg the message which is published to the topic */ - template<typename M> - int publish(const M &msg) + template<typename T> + int publish(const T &msg) { - _uorb_pub->update((void *)&msg); + _uorb_pub->update((void *)&(msg.data())); return 0; } |