[UCPD] Enable dead-battery support in example

This commit is contained in:
Timo Kröger 2024-03-14 22:14:20 +01:00
parent 57ca072dc3
commit 7b80de5e3d

View File

@ -49,8 +49,9 @@ async fn wait_attached<T: ucpd::Instance>(cc_phy: &mut CcPhy<'_, T>) -> CableOri
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
// TODO: Disable DBCC pin functionality by default but have flag in the config to keep it enabled when required.
let p = embassy_stm32::init(Config::default());
let mut config = Config::default();
config.enable_ucpd1_dead_battery = true;
let p = embassy_stm32::init(config);
info!("Hello World!");