From ef657438fc0657b1f157d541d9674b6691311ccb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 3 May 2023 23:08:00 +1000 Subject: [PATCH] AP_SerialManager: add and use AP_RCPROTOCOL_ENABLED --- libraries/AP_SerialManager/AP_SerialManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_SerialManager/AP_SerialManager.cpp b/libraries/AP_SerialManager/AP_SerialManager.cpp index b8ac32e1d8..303f84b975 100644 --- a/libraries/AP_SerialManager/AP_SerialManager.cpp +++ b/libraries/AP_SerialManager/AP_SerialManager.cpp @@ -532,7 +532,7 @@ void AP_SerialManager::init() AP_SERIALMANAGER_SLCAN_BUFSIZE_TX); break; -#ifndef HAL_BUILD_AP_PERIPH +#if AP_RCPROTOCOL_ENABLED case SerialProtocol_RCIN: if (!AP::RC().has_uart()) { AP::RC().add_uart(uart);