diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-17 08:22:38 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-17 08:22:38 +0100 |
commit | 9bad23e41852eba6657898d4ea46b0b303de4ae3 (patch) | |
tree | 66b456c21764057ade7b290fd9185189e606df6a /src/platforms/px4_defines.h | |
parent | be269520382adbd4bea59c439599897a53109ad7 (diff) | |
download | px4-firmware-9bad23e41852eba6657898d4ea46b0b303de4ae3.tar.gz px4-firmware-9bad23e41852eba6657898d4ea46b0b303de4ae3.tar.bz2 px4-firmware-9bad23e41852eba6657898d4ea46b0b303de4ae3.zip |
add explicit non-callback contructor for nuttx/uorb subscriber to work around linker issues
Diffstat (limited to 'src/platforms/px4_defines.h')
-rw-r--r-- | src/platforms/px4_defines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platforms/px4_defines.h b/src/platforms/px4_defines.h index 712e0dd63..c76548381 100644 --- a/src/platforms/px4_defines.h +++ b/src/platforms/px4_defines.h @@ -154,7 +154,7 @@ static inline px4_param_t PX4_ROS_PARAM_SET(const char *name, float value) /* Subscribe and providing a function as callback (do not use directly, use PX4_SUBSCRIBE instead) */ #define PX4_SUBSCRIBE_CBFUNC(_nodehandle, _name, _cbf, _interval) _nodehandle.subscribe<PX4_TOPIC_T(_name)>(PX4_TOPIC(_name), std::bind(&_cbf, std::placeholders::_1), _interval) /* Subscribe without a callback (do not use directly, use PX4_SUBSCRIBE instead) */ -#define PX4_SUBSCRIBE_NOCB(_nodehandle, _name, _interval) _nodehandle.subscribe<PX4_TOPIC_T(_name)>(PX4_TOPIC(_name), nullptr, _interval) +#define PX4_SUBSCRIBE_NOCB(_nodehandle, _name, _interval) _nodehandle.subscribe<PX4_TOPIC_T(_name)>(PX4_TOPIC(_name), _interval) /* Parameter handle datatype */ #include <systemlib/param/param.h> |