AP_HAL_ESP32: 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 2d7123fcff
commit 49879ab28c

View File

@ -25,7 +25,7 @@ void RCInput::init()
if (_init) {
return;
}
#ifndef HAL_BUILD_AP_PERIPH
#if AP_RCPROTOCOL_ENABLED
AP::RC().init();
#endif