Skip to content

Commit

Permalink
AP_Scripting: ESC_slew_rate: fix lua warning
Browse files Browse the repository at this point in the history
Docs say that logger must be called with `:`.
  • Loading branch information
tpwrules committed Nov 4, 2024
1 parent a6f00a3 commit 796c942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Scripting/examples/ESC_slew_rate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 796c942

Please sign in to comment.