diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-12 10:15:33 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-12 10:15:33 +0100 |
commit | c0d386bce0a2fd7d119dd8495d1ca68d985ae411 (patch) | |
tree | cd1a6dc073bdd58460159273bebb733cd9a1622d /src/platforms/px4_subscriber.h | |
parent | 59d26f5c30c9f70cd1e8bb7152ab07c96231d4e2 (diff) | |
download | px4-firmware-c0d386bce0a2fd7d119dd8495d1ca68d985ae411.tar.gz px4-firmware-c0d386bce0a2fd7d119dd8495d1ca68d985ae411.tar.bz2 px4-firmware-c0d386bce0a2fd7d119dd8495d1ca68d985ae411.zip |
mc att: use multiplatform subscriptions type
Diffstat (limited to 'src/platforms/px4_subscriber.h')
-rw-r--r-- | src/platforms/px4_subscriber.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h index 59c0ef70b..7d8463cb5 100644 --- a/src/platforms/px4_subscriber.h +++ b/src/platforms/px4_subscriber.h @@ -79,7 +79,7 @@ public: /** * Get the last message value */ - virtual const M& get_msg() = 0; + virtual const M& get() = 0; }; #if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) @@ -120,7 +120,7 @@ public: /** * Get the last message value */ - const M& get_msg() { return _msg_current; } + const M& get() { return _msg_current; } protected: /** @@ -210,7 +210,7 @@ public: /** * Get the last message value */ - const M& get_msg() { return uORB::Subscription<M>::getData(); } + const M& get() { return uORB::Subscription<M>::getData(); } protected: std::function<void(const M &)> _callback; /**< Callback handle, |