diff options
| author | alexmoon <[email protected]> | 2022-04-06 22:10:18 -0400 |
|---|---|---|
| committer | alexmoon <[email protected]> | 2022-04-07 10:51:26 -0400 |
| commit | 6abbfa9a92ec9feb03e30846bccb66272020601d (patch) | |
| tree | 78ab2f5f6ccbb45e108520395252f0e6b45665a2 /examples/nrf/src/bin/usb_serial_multitask.rs | |
| parent | a1754ac8a820d9cae97cf214969faf3090b37c76 (diff) | |
Async-ify Driver::enable and UsbDeviceBuilder::build
Diffstat (limited to 'examples/nrf/src/bin/usb_serial_multitask.rs')
| -rw-r--r-- | examples/nrf/src/bin/usb_serial_multitask.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/usb_serial_multitask.rs b/examples/nrf/src/bin/usb_serial_multitask.rs index bef704417..1258bc53d 100644 --- a/examples/nrf/src/bin/usb_serial_multitask.rs +++ b/examples/nrf/src/bin/usb_serial_multitask.rs | |||
| @@ -85,7 +85,7 @@ async fn main(spawner: Spawner, p: Peripherals) { | |||
| 85 | let class = CdcAcmClass::new(&mut builder, &mut res.serial_state, 64); | 85 | let class = CdcAcmClass::new(&mut builder, &mut res.serial_state, 64); |
| 86 | 86 | ||
| 87 | // Build the builder. | 87 | // Build the builder. |
| 88 | let usb = builder.build(); | 88 | let usb = builder.build().await; |
| 89 | 89 | ||
| 90 | unwrap!(spawner.spawn(usb_task(usb))); | 90 | unwrap!(spawner.spawn(usb_task(usb))); |
| 91 | unwrap!(spawner.spawn(echo_task(class))); | 91 | unwrap!(spawner.spawn(echo_task(class))); |
