mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
prefer RC_SERIAL_PORT, as older boards may have incorrect CONFIG_BOARD_SERIAL_RC
This commit is contained in:
parent
c0d1717897
commit
369039c28c
@ -262,10 +262,10 @@
|
||||
/*
|
||||
* Support both RC_SERIAL_PORT and CONFIG_BOARD_SERIAL_RC
|
||||
*/
|
||||
#if defined(CONFIG_BOARD_SERIAL_RC)
|
||||
# define RC_SERIAL CONFIG_BOARD_SERIAL_RC
|
||||
#elif defined(RC_SERIAL_PORT)
|
||||
#if defined(RC_SERIAL_PORT)
|
||||
# define RC_SERIAL RC_SERIAL_PORT
|
||||
#elif defined(CONFIG_BOARD_SERIAL_RC)
|
||||
# define RC_SERIAL CONFIG_BOARD_SERIAL_RC
|
||||
#else
|
||||
# error Board needs to define either CONFIG_BOARD_SERIAL_RC or RC_SERIAL_PORT
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user