From fca0ad4f85ce61b244e18be8ef837ebfaf7a9135 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Feb 2018 15:42:38 +1100 Subject: [PATCH] AP_SerialManager: allow hwdef.dat setup of serial5 config --- libraries/AP_SerialManager/AP_SerialManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_SerialManager/AP_SerialManager.cpp b/libraries/AP_SerialManager/AP_SerialManager.cpp index fface907c1..d10cab36af 100644 --- a/libraries/AP_SerialManager/AP_SerialManager.cpp +++ b/libraries/AP_SerialManager/AP_SerialManager.cpp @@ -25,7 +25,10 @@ extern const AP_HAL::HAL& hal; -#ifdef CONFIG_ARCH_BOARD_PX4FMU_V4 +#ifdef HAL_SERIAL5_PROTOCOL +#define SERIAL5_PROTOCOL HAL_SERIAL5_PROTOCOL +#define SERIAL5_BAUD HAL_SERIAL5_BAUD +#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4) #define SERIAL5_PROTOCOL SerialProtocol_MAVLink #define SERIAL5_BAUD 921600 #else