Skip to content

Commit 16de589

Browse files
pwr: remove unnecessary cfgs
1 parent 024025b commit 16de589

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/pwr.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,12 @@ impl PWR {
167167

168168
/// Private method to set LPSDSR
169169
fn set_lpsdsr(&mut self) {
170-
#[cfg(feature = "stm32l0x1")]
171170
self.0.cr.modify(|_, w| w.lpsdsr().low_power_mode());
172-
#[cfg(any(feature = "stm32l0x2", feature = "stm32l0x3"))]
173-
self.0.cr.modify(|_, w| w.lpds().set_bit());
174171
}
175172

176173
/// Private method to clear LPSDSR
177174
fn clear_lpsdsr(&mut self) {
178-
#[cfg(feature = "stm32l0x1")]
179175
self.0.cr.modify(|_, w| w.lpsdsr().main_mode());
180-
#[cfg(any(feature = "stm32l0x2", feature = "stm32l0x3"))]
181-
self.0.cr.modify(|_, w| w.lpds().clear_bit());
182176
}
183177
}
184178

0 commit comments

Comments
 (0)