From bf63729d31a2b0a85ae94b3115f57b7f4dbd5bb3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 8 Mar 2024 10:56:02 +1100 Subject: [PATCH] SRV_Channels: gate method on scripting being enabled also AP_Scheduler since we're calling and instance method on it --- libraries/SRV_Channel/SRV_Channels.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SRV_Channel/SRV_Channels.cpp b/libraries/SRV_Channel/SRV_Channels.cpp index 7f01f8b14c..54b86b0254 100644 --- a/libraries/SRV_Channel/SRV_Channels.cpp +++ b/libraries/SRV_Channel/SRV_Channels.cpp @@ -474,6 +474,7 @@ void SRV_Channels::set_output_pwm_chan(uint8_t chan, uint16_t value) } } +#if AP_SCRIPTING_ENABLED && AP_SCHEDULER_ENABLED // set output value for a specific function channel as a pwm value with loop based timeout // timeout_ms of zero will clear override of the channel // minimum override is 1 MAIN_LOOP @@ -499,6 +500,7 @@ void SRV_Channels::set_output_pwm_chan_timeout(uint8_t chan, uint16_t value, uin } } } +#endif // AP_SCRIPTING_ENABLED /* wrapper around hal.rcout->cork()