diff options
| -rw-r--r-- | examples/stm32g4/src/bin/usb_c_pd.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/stm32g4/src/bin/usb_c_pd.rs b/examples/stm32g4/src/bin/usb_c_pd.rs index c850b2753..7caea634f 100644 --- a/examples/stm32g4/src/bin/usb_c_pd.rs +++ b/examples/stm32g4/src/bin/usb_c_pd.rs | |||
| @@ -49,8 +49,9 @@ async fn wait_attached<T: ucpd::Instance>(cc_phy: &mut CcPhy<'_, T>) -> CableOri | |||
| 49 | 49 | ||
| 50 | #[embassy_executor::main] | 50 | #[embassy_executor::main] |
| 51 | async fn main(_spawner: Spawner) { | 51 | async fn main(_spawner: Spawner) { |
| 52 | // TODO: Disable DBCC pin functionality by default but have flag in the config to keep it enabled when required. | 52 | let mut config = Config::default(); |
| 53 | let p = embassy_stm32::init(Config::default()); | 53 | config.enable_ucpd1_dead_battery = true; |
| 54 | let p = embassy_stm32::init(config); | ||
| 54 | 55 | ||
| 55 | info!("Hello World!"); | 56 | info!("Hello World!"); |
| 56 | 57 | ||
