AP_SerialManager: add and use AP_RCPROTOCOL_ENABLED

This commit is contained in:
Peter Barker 2023-05-03 23:08:00 +10:00 committed by Andrew Tridgell
parent 2c00813aab
commit ef657438fc

View File

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