From ec66eafb4085194f9a820a26222c5074f72ecf11 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 4 Dec 2020 03:32:11 +0100 Subject: l2cap: allow setting rx flow control credits --- examples/src/bin/ble_l2cap_peripheral.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/src/bin/ble_l2cap_peripheral.rs') diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs index 3921864..bc20437 100644 --- a/examples/src/bin/ble_l2cap_peripheral.rs +++ b/examples/src/bin/ble_l2cap_peripheral.rs @@ -54,7 +54,11 @@ async fn bluetooth_task(sd: &'static Softdevice, config: peripheral::Config) { info!("advertising done!"); - let ch = unwrap!(l.listen(&conn, PSM).await); + let config = l2cap::Config { + psm: PSM, + credits: 8, + }; + let ch = unwrap!(l.listen(&conn, &config).await); info!("l2cap connected"); loop { -- cgit v1.2.3