From 02100127a3ca29c80e237fdde965509af724b4ab Mon Sep 17 00:00:00 2001 From: Albin Hedman Date: Wed, 16 Aug 2023 15:42:19 +0200 Subject: [PATCH] OPAMP - Avoid overwriting rcc config of other modules --- src/opamp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opamp.rs b/src/opamp.rs index 05c7107f..91a4b83c 100644 --- a/src/opamp.rs +++ b/src/opamp.rs @@ -209,7 +209,7 @@ macro_rules! opamps { ) -> ( $($opamp::Disabled,)* ) { - rcc.rb.apb2enr.write(|w| w.syscfgen().set_bit()); + rcc.rb.apb2enr.modify(|_, w| w.syscfgen().set_bit()); ( $($opamp::Disabled,)*