From cdd08024bbe30b6127d0e05f29cd4c0a20474a9a Mon Sep 17 00:00:00 2001 From: David O'Connor Date: Thu, 25 Jan 2024 10:01:17 -0500 Subject: [PATCH] patch --- src/adc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adc.rs b/src/adc.rs index 909dd22..bea6f1e 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -433,7 +433,7 @@ macro_rules! hal { // ...The software is allowed to write this bit only when ADSTART=0 and JADSTART=0 (which // ensures that no conversion is ongoing)." // todo: On H7, allow disabling boost, either manually, or by checking the clock speed. - #[cfg(any(feature = "h7", not(feature = "h753")))] + #[cfg(all(feature = "h7", not(feature = "h753")))] result.regs.cr.modify(|_, w| w.boost().bits(1)); #[cfg(feature = "h753")]