pps_capture: fix PARAM_PREFIX for boards with px4io (CONFIG_BOARD_IO)

This commit is contained in:
Igor Mišić 2021-12-16 19:36:00 +01:00 committed by Beat Küng
parent 89f828fba7
commit 2d680dfd1a
2 changed files with 9 additions and 6 deletions

View File

@ -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
)

View File

@ -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)
{