diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-03-15 22:10:21 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-03-15 22:10:21 +0100 |
commit | 428b9e9e1fe2c8e167e4d83151142690dc44d9c7 (patch) | |
tree | 883fce8eee9193114a6379fd9bf056fccdcd0267 /nrf-softdevice/src/events.rs | |
parent | c584deaf9d9e941f18457934a4a463e078f380ec (diff) | |
download | nrf-softdevice-428b9e9e1fe2c8e167e4d83151142690dc44d9c7.zip |
Change `run()` to never return.
Diffstat (limited to 'nrf-softdevice/src/events.rs')
-rw-r--r-- | nrf-softdevice/src/events.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nrf-softdevice/src/events.rs b/nrf-softdevice/src/events.rs index bae549d..bf7c5d6 100644 --- a/nrf-softdevice/src/events.rs +++ b/nrf-softdevice/src/events.rs @@ -50,7 +50,7 @@ fn on_soc_evt(evt: u32) { // TODO actually derive this from the headers + the ATT_MTU const BLE_EVT_MAX_SIZE: u16 = 128; -pub(crate) async fn run() { +pub(crate) async fn run() -> ! { poll_fn(|cx| unsafe { SWI2_WAKER.register(cx.waker()); @@ -78,9 +78,9 @@ pub(crate) async fn run() { } } - Poll::<()>::Pending + Poll::Pending }) - .await; + .await } #[cfg(any(feature = "nrf52805", feature = "nrf52810", feature = "nrf52811"))] |