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; }