diff options
Diffstat (limited to 'src/platforms/px4_publisher.h')
-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; } |