aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/low_power.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/low_power.rs b/embassy-stm32/src/low_power.rs
index 4607eb230..d13df5a6b 100644
--- a/embassy-stm32/src/low_power.rs
+++ b/embassy-stm32/src/low_power.rs
@@ -132,7 +132,10 @@ impl Into<Lpms> for StopMode {
132 fn into(self) -> Lpms { 132 fn into(self) -> Lpms {
133 match self { 133 match self {
134 StopMode::Stop1 => Lpms::STOP1, 134 StopMode::Stop1 => Lpms::STOP1,
135 #[cfg(not(stm32wba))]
135 StopMode::Stop2 => Lpms::STOP2, 136 StopMode::Stop2 => Lpms::STOP2,
137 #[cfg(stm32wba)]
138 StopMode::Stop2 => Lpms::STOP1, // TODO: WBA has no STOP2?
136 } 139 }
137 } 140 }
138} 141}