aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_subscriber.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/px4_subscriber.h')
-rw-r--r--src/platforms/px4_subscriber.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h
index fdd0367d5..e995c6e49 100644
--- a/src/platforms/px4_subscriber.h
+++ b/src/platforms/px4_subscriber.h
@@ -97,9 +97,9 @@ public:
* @param list subscriber is added to this list
*/
SubscriberPX4(const struct orb_metadata *meta,
- unsigned interval,
- std::function<void(const M&)> callback,
- List<uORB::SubscriptionNode *> * list) :
+ unsigned interval,
+ std::function<void(const M &)> callback,
+ List<uORB::SubscriptionNode *> *list) :
Subscriber(),
uORB::Subscription<M>(meta, interval, list),
_callback(callback)
@@ -113,7 +113,8 @@ public:
* Invoked by the list traversal in NodeHandle::spinOnce
* If new data is available the callback is called
*/
- void update() {
+ void update()
+ {
if (!uORB::Subscription<M>::updated()) {
/* Topic not updated, do not call callback */
return;
@@ -127,7 +128,7 @@ public:
};
private:
- std::function<void(const M&)> _callback; /**< Callback handle,
+ std::function<void(const M &)> _callback; /**< Callback handle,
called when new data is available */
};