diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-26 23:18:28 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-04-26 23:22:25 +0200 |
| commit | 5732ee7ca975c0dd1afa83ade1667a2599d20985 (patch) | |
| tree | f627117733d3fcd5bbb4eb664559c387a8e81f33 /examples/nrf52840 | |
| parent | 597315873dbef394ae4cefe0af740fcb1bb951e0 (diff) | |
Reduce use of the full `futures` crate.
Diffstat (limited to 'examples/nrf52840')
| -rw-r--r-- | examples/nrf52840/Cargo.toml | 1 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/gpiote_channel.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/nrf52840/Cargo.toml b/examples/nrf52840/Cargo.toml index f0553a92d..d693c5a02 100644 --- a/examples/nrf52840/Cargo.toml +++ b/examples/nrf52840/Cargo.toml | |||
| @@ -25,7 +25,6 @@ static_cell = { version = "2" } | |||
| 25 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } | 25 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } |
| 26 | cortex-m-rt = "0.7.0" | 26 | cortex-m-rt = "0.7.0" |
| 27 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 27 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 28 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | ||
| 29 | rand = { version = "0.8.4", default-features = false } | 28 | rand = { version = "0.8.4", default-features = false } |
| 30 | embedded-storage = "0.3.1" | 29 | embedded-storage = "0.3.1" |
| 31 | usbd-hid = "0.7.0" | 30 | usbd-hid = "0.7.0" |
diff --git a/examples/nrf52840/src/bin/gpiote_channel.rs b/examples/nrf52840/src/bin/gpiote_channel.rs index e254d613d..dcfe7723a 100644 --- a/examples/nrf52840/src/bin/gpiote_channel.rs +++ b/examples/nrf52840/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 | } |
