From ecd03b59a9e817088894f02faf893b298a782a67 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Thu, 31 Oct 2024 19:59:33 -0500 Subject: [PATCH] AP_Scripting: ESC_slew_rate: fix lua warning Docs say that logger must be called with `:`. --- libraries/AP_Scripting/examples/ESC_slew_rate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/examples/ESC_slew_rate.lua b/libraries/AP_Scripting/examples/ESC_slew_rate.lua index 5b1ba074de..b85991a017 100644 --- a/libraries/AP_Scripting/examples/ESC_slew_rate.lua +++ b/libraries/AP_Scripting/examples/ESC_slew_rate.lua @@ -44,7 +44,7 @@ function update() local pwm_mid = 0.5*(pwm_min+pwm_max) local pwm = math.floor(pwm_mid + (pwm_max-pwm_mid) * output) SRV_Channels:set_output_pwm_chan_timeout(chan-1, pwm, 100) - logger.write('ESLW', 'PWM,Freq', 'If', pwm, freq) + logger:write('ESLW', 'PWM,Freq', 'If', pwm, freq) gcs:send_named_float('PWN',pwm) gcs:send_named_float('FREQ',freq) end