Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
RaulTrombin and patrickelectric committed Mar 4, 2024
1 parent 421030f commit c9d1809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -473,7 +473,7 @@ fn set_pwm_channels_value_py(channels: Vec<PwmChannel>, value: u16) {
You can use this method like :py:func:`set_pwm_channel_duty_cycle`.\n
>>> navigator.set_pwm_channels_value([PwmChannel.Ch1, PwmChannel.Ch16], 0.5)"]
fn set_pwm_channels_duty_cycle_py(channels: Vec<PwmChannel>, duty_cycle: f32) {
for i in 0..channels.len() {
for channel in channels {
with_navigator!().set_pwm_channel_duty_cycle(channels[i].clone().into(), duty_cycle);
}
}
Expand Down

0 comments on commit c9d1809

Please sign in to comment.