Skip to content

Commit 0219525

Browse files
committed
Revert PWM channels back to 2
1 parent 4001f96 commit 0219525

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Diff for: CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
* Add support for Raspberry Pi Compute Module 5 Lite.
66
* Add support for Raspberry Pi 500.
7-
* **Pwm**: (Breaking change) Add support for two additional PWM channels.
87

98
## 0.20.0 (November 30, 2024)
109

Diff for: src/pwm.rs

-4
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,13 @@ pub type Result<T> = result::Result<T, Error>;
107107
pub enum Channel {
108108
Pwm0 = 0,
109109
Pwm1 = 1,
110-
Pwm2 = 2,
111-
Pwm3 = 3,
112110
}
113111

114112
impl fmt::Display for Channel {
115113
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
116114
match *self {
117115
Channel::Pwm0 => write!(f, "Pwm0"),
118116
Channel::Pwm1 => write!(f, "Pwm1"),
119-
Channel::Pwm2 => write!(f, "Pwm2"),
120-
Channel::Pwm3 => write!(f, "Pwm3"),
121117
}
122118
}
123119
}

0 commit comments

Comments
 (0)