aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorChristian Enderle <[email protected]>2024-01-02 23:29:33 +0100
committerChristian Enderle <[email protected]>2024-01-02 23:29:33 +0100
commit7f00d7aa0c0d9bd142209667bfdc224049cf6f90 (patch)
tree3da7c91b73f1b7e149e34dfa2352497ff3edfb6a /embassy-stm32
parent986eca1b1210d081d3e2f70702d8248c7ef5286b (diff)
allow unused variable
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/low_power.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/low_power.rs b/embassy-stm32/src/low_power.rs
index c5c5dd96f..4c3d288fd 100644
--- a/embassy-stm32/src/low_power.rs
+++ b/embassy-stm32/src/low_power.rs
@@ -179,6 +179,7 @@ impl Executor {
179 } 179 }
180 } 180 }
181 181
182 #[allow(unused_variables)]
182 fn configure_stop(&mut self, stop_mode: StopMode) { 183 fn configure_stop(&mut self, stop_mode: StopMode) {
183 #[cfg(stm32l5)] 184 #[cfg(stm32l5)]
184 crate::pac::PWR.cr1().modify(|m| m.set_lpms(stop_mode.into())); 185 crate::pac::PWR.cr1().modify(|m| m.set_lpms(stop_mode.into()));