diff options
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r-- | examples/src/bin/ble_l2cap_peripheral.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs index ecda5f4..eccd555 100644 --- a/examples/src/bin/ble_l2cap_peripheral.rs +++ b/examples/src/bin/ble_l2cap_peripheral.rs @@ -53,11 +53,8 @@ async fn bluetooth_task(sd: &'static Softdevice) { info!("advertising done!"); - let config = l2cap::Config { - psm: PSM, - credits: 8, - }; - let ch = unwrap!(l.listen(&conn, &config).await); + let config = l2cap::Config { credits: 8 }; + let ch = unwrap!(l.listen(&conn, &config, PSM).await); info!("l2cap connected"); loop { |