Skip to content

Commit d30246f

Browse files
authored
Merge pull request #79 from usbalbin/opamp_overwrite
OPAMP - Avoid overwriting rcc config of other modules
2 parents b244850 + 0210012 commit d30246f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opamp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ macro_rules! opamps {
345345
) -> (
346346
$($opamp::Disabled,)*
347347
) {
348-
rcc.rb.apb2enr.write(|w| w.syscfgen().set_bit());
348+
rcc.rb.apb2enr.modify(|_, w| w.syscfgen().set_bit());
349349

350350
(
351351
$($opamp::Disabled,)*

0 commit comments

Comments
 (0)