aboutsummaryrefslogtreecommitdiff
path: root/src/examples/subscriber/subscriber.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/subscriber/subscriber.cpp')
-rw-r--r--src/examples/subscriber/subscriber.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp
index 093697d8e..0d0a81d7e 100644
--- a/src/examples/subscriber/subscriber.cpp
+++ b/src/examples/subscriber/subscriber.cpp
@@ -85,7 +85,7 @@ PX4_MAIN_FUNCTION(subscriber)
* callbacks will be called from within this thread (the main one). px4::spin()
* will exit when Ctrl-C is pressed, or the node is shutdown by the master.
*/
- px4::spin();
+ n.spin();
return 0;
}