From 49879ab28c291488fbff451791bf532571a7330f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 3 May 2023 23:08:00 +1000 Subject: [PATCH] AP_HAL_ESP32: add and use AP_RCPROTOCOL_ENABLED --- libraries/AP_HAL_ESP32/RCInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ESP32/RCInput.cpp b/libraries/AP_HAL_ESP32/RCInput.cpp index 721e137bb0..2923872dbd 100644 --- a/libraries/AP_HAL_ESP32/RCInput.cpp +++ b/libraries/AP_HAL_ESP32/RCInput.cpp @@ -25,7 +25,7 @@ void RCInput::init() if (_init) { return; } -#ifndef HAL_BUILD_AP_PERIPH +#if AP_RCPROTOCOL_ENABLED AP::RC().init(); #endif