Skip to content

Commit a9bd108

Browse files
committed
Make d3cr register macro available even without smps flag
1 parent 8506eba commit a9bd108

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pwr.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ use crate::stm32::PWR;
5959
))]
6060
use crate::stm32::{RCC, SYSCFG};
6161

62-
#[cfg(all(feature = "rm0433", feature = "smps"))]
62+
#[cfg(all(
63+
feature = "rm0433",
64+
any(feature = "smps", feature = "example-smps")
65+
))]
6366
compile_error!("SMPS configuration fields are not available for RM0433 parts");
6467

6568
/// Extension trait that constrains the `PWR` peripheral

0 commit comments

Comments
 (0)