aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Kröger <[email protected]>2024-03-15 17:44:27 +0100
committerTimo Kröger <[email protected]>2024-03-15 17:44:27 +0100
commit21e2499f353c995d71710a2ed62d6f3914d6d60c (patch)
treede03677b16c9476cb500d44ddc3579900fd73769
parent7b80de5e3db69a3d348bc74f6294e8642a11785e (diff)
[UCPD] Fix dead-battery disable for G0
Inverted flag got missed in the original PR.
-rw-r--r--embassy-stm32/src/ucpd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/ucpd.rs b/embassy-stm32/src/ucpd.rs
index 2d119c973..9c37d2c04 100644
--- a/embassy-stm32/src/ucpd.rs
+++ b/embassy-stm32/src/ucpd.rs
@@ -42,8 +42,8 @@ pub(crate) fn init(
42 // strobe will apply the CC pin configuration from the control register 42 // strobe will apply the CC pin configuration from the control register
43 // (which is why we need to be careful about when we call this) 43 // (which is why we need to be careful about when we call this)
44 crate::pac::SYSCFG.cfgr1().modify(|w| { 44 crate::pac::SYSCFG.cfgr1().modify(|w| {
45 w.set_ucpd1_strobe(ucpd1_db_enable); 45 w.set_ucpd1_strobe(!ucpd1_db_enable);
46 w.set_ucpd2_strobe(ucpd2_db_enable); 46 w.set_ucpd2_strobe(!ucpd2_db_enable);
47 }); 47 });
48 } 48 }
49 49