diff options
Diffstat (limited to 'examples/nrf5340')
| -rw-r--r-- | examples/nrf5340/Cargo.toml | 1 | ||||
| -rw-r--r-- | examples/nrf5340/src/bin/gpiote_channel.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/nrf5340/Cargo.toml b/examples/nrf5340/Cargo.toml index 1d994d925..0d3e39fe5 100644 --- a/examples/nrf5340/Cargo.toml +++ b/examples/nrf5340/Cargo.toml | |||
| @@ -21,7 +21,6 @@ static_cell = "2" | |||
| 21 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } | 21 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } |
| 22 | cortex-m-rt = "0.7.0" | 22 | cortex-m-rt = "0.7.0" |
| 23 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 23 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 24 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | ||
| 25 | rand = { version = "0.8.4", default-features = false } | 24 | rand = { version = "0.8.4", default-features = false } |
| 26 | embedded-storage = "0.3.1" | 25 | embedded-storage = "0.3.1" |
| 27 | usbd-hid = "0.7.0" | 26 | usbd-hid = "0.7.0" |
diff --git a/examples/nrf5340/src/bin/gpiote_channel.rs b/examples/nrf5340/src/bin/gpiote_channel.rs index c0a55142f..23f6fca98 100644 --- a/examples/nrf5340/src/bin/gpiote_channel.rs +++ b/examples/nrf5340/src/bin/gpiote_channel.rs | |||
| @@ -61,5 +61,5 @@ async fn main(_spawner: Spawner) { | |||
| 61 | } | 61 | } |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | futures::join!(button1, button2, button3, button4); | 64 | embassy_futures::join::join4(button1, button2, button3, button4).await; |
| 65 | } | 65 | } |
