Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Dec 11, 2024
1 parent 8d76d90 commit 4ee9163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ fn set_pwm_channels_values_c(channels: *const usize, values: *const f32, length:
std::slice::from_raw_parts(values, length)
};
for i in 0..length {
with_navigator!().set_pwm_duty_cycle(array_channels[i].into(), array_values[i]);
with_navigator!().set_pwm_duty_cycle(array_channels[i], array_values[i]);
}
}

Expand All @@ -520,7 +520,7 @@ fn set_pwm_channels_duty_cycle_values_c(
std::slice::from_raw_parts(duty_cycle, length)
};
for i in 0..length {
with_navigator!().set_pwm_duty_cycle(array_channels[i].into(), array_values[i]);
with_navigator!().set_pwm_duty_cycle(array_channels[i], array_values[i]);
}
}

Expand Down

0 comments on commit 4ee9163

Please sign in to comment.