Skip to content

Commit 4d5e666

Browse files
committed
fix complementary
1 parent 4f73885 commit 4d5e666

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Improve SPI::new* docs [#587]
1313
- Add advanced timer dead time insertion example [#585]
1414
- Cleanups
15+
- Fix comlementary for independent channels
1516

1617
## [v0.15.0] - 2023-03-13
1718

src/timer/pwm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ macro_rules! pins_impl {
9898
{
9999
$(const $ENCHX: bool = true;)+
100100
$(const $COMP: bool = true;)+
101-
type Channels = ($(PwmChannel<TIM, $ENCHX>),+);
101+
type Channels = ($(PwmChannel<TIM, $ENCHX, $COMP>),+);
102102
fn split() -> Self::Channels {
103-
($(PwmChannel::<TIM, $ENCHX>::new()),+)
103+
($(PwmChannel::<TIM, $ENCHX, $COMP>::new()),+)
104104
}
105105
}
106106
)+
@@ -208,7 +208,7 @@ where
208208
}
209209
}
210210

211-
impl<TIM: Instance + WithPwm, const C: u8> PwmChannel<TIM, C> {
211+
impl<TIM, const C: u8, const COMP: bool> PwmChannel<TIM, C, COMP> {
212212
pub(crate) fn new() -> Self {
213213
Self {
214214
_tim: core::marker::PhantomData,

0 commit comments

Comments
 (0)