diff --git a/libraries/AP_HAL_SITL/Scheduler.cpp b/libraries/AP_HAL_SITL/Scheduler.cpp index 32eeebfa70..0ae924f15a 100644 --- a/libraries/AP_HAL_SITL/Scheduler.cpp +++ b/libraries/AP_HAL_SITL/Scheduler.cpp @@ -290,7 +290,7 @@ void Scheduler::_run_io_procs() check_thread_stacks(); #endif -#ifndef HAL_BUILD_AP_PERIPH +#if AP_RCPROTOCOL_ENABLED AP::RC().update(); #endif }