Skip to content

Commit 2b0bcd8

Browse files
authored
Merge pull request #754 from Orange-Murker/master
fix: complementary output polarity
2 parents 0987cd6 + a6ec321 commit 2b0bcd8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1818

1919
- Fix transmission termination in I2C master DMA read [#736]
2020
- Prevent starting a new I2C transmission before previous stop finishes [#737]
21+
- Fix complementary output polarity for PWM [#754]
2122

2223
## [v0.20.0] - 2024-01-14
2324

src/timer/pwm.rs

+1-1
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)