diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 11:55:41 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 11:55:48 +0100 |
commit | 0474908e1c600d312934fcdd5790813813e799b1 (patch) | |
tree | 5e47f22e8d98b28453bd0b34e5c982a3f8949d63 /src/examples | |
parent | e7c1e5b1ff7b1bbdc11ab2cae6b99fe459487119 (diff) | |
download | px4-firmware-0474908e1c600d312934fcdd5790813813e799b1.tar.gz px4-firmware-0474908e1c600d312934fcdd5790813813e799b1.tar.bz2 px4-firmware-0474908e1c600d312934fcdd5790813813e799b1.zip |
reenable task flag
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/publisher/publisher.cpp | 6 | ||||
-rw-r--r-- | src/examples/subscriber/subscriber.cpp | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/examples/publisher/publisher.cpp b/src/examples/publisher/publisher.cpp index 68fd8a5c3..5ee8b459b 100644 --- a/src/examples/publisher/publisher.cpp +++ b/src/examples/publisher/publisher.cpp @@ -32,7 +32,11 @@ using namespace px4; /** * This tutorial demonstrates simple sending of messages over the PX4 middleware system. */ -// __EXPORT bool task_should_exit; + +namespace px4 +{ +bool task_should_exit = false; +} PX4_MAIN_FUNCTION(publisher) { 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) { |