From a77a894b8af50386ec8da4f0d975a9d7b6aa6890 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 7 Mar 2024 18:52:58 +1100 Subject: [PATCH] AP_HAL_SITL: correct define around use of RC singleton ... you may not be a periphs and *still* not have RC... --- libraries/AP_HAL_SITL/Scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }