Skip to content

Commit

Permalink
PWM: fix comments regarding resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Aschmann committed Mar 20, 2023
1 parent 6e43cee commit dcd3218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl<const CHANNELS: usize> PWMDevice<CHANNELS> {

/// Sets the duty-cycle for the given channel
///
/// value: `0: 0%, u16::MAX: 100%` duty_cycle
/// value: `0: 0%, resolution: 100%` duty_cycle
fn set(&mut self, channel: PWMChannel, value: u16) {
unsafe {
riot_sys::pwm_set(self.dev, channel.channel, value);
Expand Down

0 comments on commit dcd3218

Please sign in to comment.