summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_peripheral.rs
diff options
context:
space:
mode:
authoralexmoon <alex.r.moon@gmail.com>2022-07-13 07:59:32 -0400
committerGitHub <noreply@github.com>2022-07-13 07:59:32 -0400
commit29fce52109fcd12cda7767b546e43270b3217264 (patch)
treeb3691429eef48000076d0c4c28ff769ab7497ea8 /examples/src/bin/ble_l2cap_peripheral.rs
parent96dbdc838ac2d2a0997eebeda77cead2154d5d22 (diff)
parentea7a3908df6816225641da342de2466d91ff6f2b (diff)
downloadnrf-softdevice-29fce52109fcd12cda7767b546e43270b3217264.zip
Merge pull request #107 from alexmoon/gatt-service-builder
GATT service builder
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r--examples/src/bin/ble_l2cap_peripheral.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs
index eccd555..23ef03e 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -147,7 +147,7 @@ fn main() -> ! {
unwrap!(RawError::convert(unsafe { raw::sd_clock_hfclk_request() }));
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)));
});