From eb8691c3a58cbc05382131a40ed26809667855f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 11 Dec 2024 06:53:05 -0300 Subject: [PATCH] wip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a5d33211c..f6818402a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -411,7 +411,7 @@ fn set_pwm_freq_hz(freq: f32) { >>> navigator.set_pwm_channel_value(PwmChannel.Ch1, 2000)\n >>> navigator.set_pwm_enable(True)"] fn set_pwm_channel_value(channel: usize, value: f32) { - with_navigator!().set_pwm_duty_cycle(channel, value / 4096) + with_navigator!().set_pwm_duty_cycle(channel, value / 4096.0) } #[cpy_fn]