aboutsummaryrefslogtreecommitdiff
path: root/src/examples/subscriber
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/subscriber')
-rw-r--r--src/examples/subscriber/subscriber.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp
index cdadaf2bc..b87231880 100644
--- a/src/examples/subscriber/subscriber.cpp
+++ b/src/examples/subscriber/subscriber.cpp
@@ -36,8 +36,10 @@ void rc_channels_callback(const PX4_TOPIC_T(rc_channels) *msg)
{
PX4_INFO("I heard: [%lu]", msg->timestamp_last_valid);
}
-
-// __EXPORT bool task_should_exit;
+namespace px4
+{
+bool task_should_exit = false;
+}
PX4_MAIN_FUNCTION(subscriber)
{