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