aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_subscriber.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-04 13:20:12 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-04 13:20:12 +0100
commitf4a326c2bf7af6eac86983cd65e66ff76e623e22 (patch)
tree53e5c4937de05fcf46aa14882ecf1f2bf8660250 /src/platforms/px4_subscriber.h
parente0bb713bb03c0aa79e69496c787c012a8e1b78d1 (diff)
downloadpx4-firmware-f4a326c2bf7af6eac86983cd65e66ff76e623e22.tar.gz
px4-firmware-f4a326c2bf7af6eac86983cd65e66ff76e623e22.tar.bz2
px4-firmware-f4a326c2bf7af6eac86983cd65e66ff76e623e22.zip
platform headers: fix code style
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 */
};