mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BoardConfig: fix check for PX4_V4
When building for px4-v2 we have an warning because we are checking for the value of this undefined macro. Just change both checks to use "defined()". ../../libraries/AP_BoardConfig/AP_BoardConfig.cpp:36:7: warning: "CONFIG_ARCH_BOARD_PX4FMU_V4" is not defined [-Wundef] #elif CONFIG_ARCH_BOARD_PX4FMU_V4 ^
This commit is contained in:
parent
9a9b59a97f
commit
913f88f2be
@ -30,10 +30,10 @@
|
|||||||
#include <drivers/drv_pwm_output.h>
|
#include <drivers/drv_pwm_output.h>
|
||||||
#include <drivers/drv_sbus.h>
|
#include <drivers/drv_sbus.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V1)
|
||||||
#define BOARD_PWM_COUNT_DEFAULT 2
|
#define BOARD_PWM_COUNT_DEFAULT 2
|
||||||
#define BOARD_SER1_RTSCTS_DEFAULT 0 // no flow control on UART5 on FMUv1
|
#define BOARD_SER1_RTSCTS_DEFAULT 0 // no flow control on UART5 on FMUv1
|
||||||
#elif CONFIG_ARCH_BOARD_PX4FMU_V4
|
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||||
#define BOARD_PWM_COUNT_DEFAULT 6
|
#define BOARD_PWM_COUNT_DEFAULT 6
|
||||||
#define BOARD_SER1_RTSCTS_DEFAULT 2
|
#define BOARD_SER1_RTSCTS_DEFAULT 2
|
||||||
#else // V2
|
#else // V2
|
||||||
|
Loading…
Reference in New Issue
Block a user