aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_publisher.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-21 17:41:13 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-21 17:41:13 +0100
commit02fdd48a477853a2f54c7954478a3ce5b5b3f497 (patch)
treeeb343bc778c9359755865127e859f80bbfef184c /src/platforms/px4_publisher.h
parent2a2594a1717a5067ac1f209974851f9512e46415 (diff)
downloadpx4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.tar.gz
px4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.tar.bz2
px4-firmware-02fdd48a477853a2f54c7954478a3ce5b5b3f497.zip
publisher: use wrapper message type
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r--src/platforms/px4_publisher.h6
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;
}