aboutsummaryrefslogtreecommitdiff
path: root/src/examples/publisher/publisher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/publisher/publisher.cpp')
-rw-r--r--src/examples/publisher/publisher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/publisher/publisher.cpp b/src/examples/publisher/publisher.cpp
index 6869e765b..c09cca1fc 100644
--- a/src/examples/publisher/publisher.cpp
+++ b/src/examples/publisher/publisher.cpp
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
* than we can send them, the number here specifies how many messages to
* buffer up before throwing some away.
*/
- px4::Publisher rc_channels_pub = n.advertise<px4::rc_channels>("rc_channels");
+ px4::Publisher rc_channels_pub = n.advertise<px4::rc_channels>(PX4_TOPIC(rc_channels));
px4::Rate loop_rate(10);