diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-09-10 23:03:58 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-10 23:03:58 +0000 |
| commit | fac71e594e6cecc78d8d77e129236491194125c6 (patch) | |
| tree | 3f98080c8b86aa85ca3ff12804ad532c0843a573 /examples | |
| parent | 0bf9a2591b062f2f8409fe27c590e1783b139e38 (diff) | |
| parent | 1b0661ebb17fca93d11891a1c488005d3d644784 (diff) | |
Merge pull request #3271 from sjoerdsimons/ucpd-sop-filters
[UCPD] Add support for non-SOP packets
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32g4/src/bin/usb_c_pd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g4/src/bin/usb_c_pd.rs b/examples/stm32g4/src/bin/usb_c_pd.rs index 7caea634f..2e87d3931 100644 --- a/examples/stm32g4/src/bin/usb_c_pd.rs +++ b/examples/stm32g4/src/bin/usb_c_pd.rs | |||
| @@ -55,7 +55,7 @@ async fn main(_spawner: Spawner) { | |||
| 55 | 55 | ||
| 56 | info!("Hello World!"); | 56 | info!("Hello World!"); |
| 57 | 57 | ||
| 58 | let mut ucpd = Ucpd::new(p.UCPD1, Irqs {}, p.PB6, p.PB4); | 58 | let mut ucpd = Ucpd::new(p.UCPD1, Irqs {}, p.PB6, p.PB4, Default::default()); |
| 59 | ucpd.cc_phy().set_pull(CcPull::Sink); | 59 | ucpd.cc_phy().set_pull(CcPull::Sink); |
| 60 | 60 | ||
| 61 | info!("Waiting for USB connection..."); | 61 | info!("Waiting for USB connection..."); |
