diff options
author | alexmoon <alex.r.moon@gmail.com> | 2022-04-14 15:20:25 -0400 |
---|---|---|
committer | alexmoon <alex.r.moon@gmail.com> | 2022-07-12 14:34:16 -0400 |
commit | 5de2bab964549cd481062d3590f1d0c930c4f2f0 (patch) | |
tree | e14c6bdef1650adcf8adeba9053d0183423bae2f /examples/src/bin/ble_scan.rs | |
parent | 96dbdc838ac2d2a0997eebeda77cead2154d5d22 (diff) | |
download | nrf-softdevice-5de2bab964549cd481062d3590f1d0c930c4f2f0.zip |
Make Softdevice::enable return an exclusive reference
Diffstat (limited to 'examples/src/bin/ble_scan.rs')
-rw-r--r-- | examples/src/bin/ble_scan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_scan.rs b/examples/src/bin/ble_scan.rs index e9a9376..7c8e7f6 100644 --- a/examples/src/bin/ble_scan.rs +++ b/examples/src/bin/ble_scan.rs @@ -109,7 +109,7 @@ fn main() -> ! { let sd = Softdevice::enable(&config); let executor = EXECUTOR.put(Executor::new()); - executor.run(|spawner| { + executor.run(move |spawner| { unwrap!(spawner.spawn(softdevice_task(sd))); unwrap!(spawner.spawn(ble_task(sd))); }); |