From 02fdd48a477853a2f54c7954478a3ce5b5b3f497 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Wed, 21 Jan 2015 17:41:13 +0100 Subject: [PATCH] publisher: use wrapper message type --- src/platforms/px4_publisher.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index 6d75e28fcc..0c8dd62ba1 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 - int publish(const M &msg) + template + int publish(const T &msg) { - _uorb_pub->update((void *)&msg); + _uorb_pub->update((void *)&(msg.data())); return 0; }