forked from Archive/PX4-Autopilot
pps_capture: fix PARAM_PREFIX for boards with px4io (CONFIG_BOARD_IO)
This commit is contained in:
parent
89f828fba7
commit
2d680dfd1a
|
@ -30,9 +30,18 @@
|
|||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
set(PARAM_PREFIX PWM_MAIN)
|
||||
|
||||
if(CONFIG_BOARD_IO)
|
||||
set(PARAM_PREFIX PWM_AUX)
|
||||
endif()
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__pps_capture
|
||||
MAIN pps_capture
|
||||
COMPILE_FLAGS
|
||||
-DPARAM_PREFIX="${PARAM_PREFIX}"
|
||||
SRCS
|
||||
PPSCapture.cpp
|
||||
)
|
||||
|
|
|
@ -43,12 +43,6 @@
|
|||
#include <board_config.h>
|
||||
#include <parameters/param.h>
|
||||
|
||||
#ifdef BOARD_WITH_IO
|
||||
# define PARAM_PREFIX "PWM_AUX"
|
||||
#else
|
||||
# define PARAM_PREFIX "PWM_MAIN"
|
||||
#endif
|
||||
|
||||
PPSCapture::PPSCapture() :
|
||||
ScheduledWorkItem(MODULE_NAME, px4::wq_configurations::hp_default)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue