diff options
author | Albert Skog <mail@albertskog.se> | 2021-10-15 13:17:40 +0200 |
---|---|---|
committer | Albert Skog <mail@albertskog.se> | 2021-10-15 13:22:17 +0200 |
commit | 0d96ded98486cb5f178b8d635eb29157b1a2a9d5 (patch) | |
tree | eb44123af2d7d34582ba1bbd5b6cc45ec191f994 /examples/src/bin/ble_l2cap_peripheral.rs | |
parent | bf4f7a143d38713922d9bd5ff1a983c4c7290c10 (diff) | |
download | nrf-softdevice-0d96ded98486cb5f178b8d635eb29157b1a2a9d5.zip |
fix panic in example
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r-- | examples/src/bin/ble_l2cap_peripheral.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs index e7cff49..ecda5f4 100644 --- a/examples/src/bin/ble_l2cap_peripheral.rs +++ b/examples/src/bin/ble_l2cap_peripheral.rs @@ -145,10 +145,10 @@ fn main() -> ! { ..Default::default() }; - unwrap!(RawError::convert(unsafe { raw::sd_clock_hfclk_request() })); - let sd = Softdevice::enable(&config); + unwrap!(RawError::convert(unsafe { raw::sd_clock_hfclk_request() })); + let executor = EXECUTOR.put(Executor::new()); executor.run(|spawner| { unwrap!(spawner.spawn(softdevice_task(sd))); |