Skip to content

Commit 1aec3f8

Browse files
committed
fix: complementary output polarity
1 parent 0987cd6 commit 1aec3f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timer/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ where
484484
/// Set the polarity of the active state for the complementary PWM output of the advanced timer on channel `channel`
485485
#[inline]
486486
pub fn set_complementary_polarity(&mut self, channel: Channel, p: Polarity) {
487-
TIM::set_channel_polarity(PINS::check_complementary_used(channel) as u8, p);
487+
TIM::set_nchannel_polarity(PINS::check_complementary_used(channel) as u8, p);
488488
}
489489
}
490490

0 commit comments

Comments
 (0)