summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_peripheral_onoff.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/ble_peripheral_onoff.rs')
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs
index 9fdc8c0..a12f46e 100644
--- a/examples/src/bin/ble_peripheral_onoff.rs
+++ b/examples/src/bin/ble_peripheral_onoff.rs
@@ -170,7 +170,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(bluetooth_task(sd, p.P0_11.degrade(), p.P0_12.degrade())));
});