[UCPD] Fix dead-battery disable for G0

Inverted flag got missed in the original PR.
This commit is contained in:
Timo Kröger 2024-03-15 17:44:27 +01:00
parent 7b80de5e3d
commit 21e2499f35

View file

@ -42,8 +42,8 @@ pub(crate) fn init(
// strobe will apply the CC pin configuration from the control register
// (which is why we need to be careful about when we call this)
crate::pac::SYSCFG.cfgr1().modify(|w| {
w.set_ucpd1_strobe(ucpd1_db_enable);
w.set_ucpd2_strobe(ucpd2_db_enable);
w.set_ucpd1_strobe(!ucpd1_db_enable);
w.set_ucpd2_strobe(!ucpd2_db_enable);
});
}