summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_peripheral.rs
diff options
context:
space:
mode:
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 0ab7369..d752ef7 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -51,7 +51,7 @@ async fn bluetooth_task(sd: &'static Softdevice) {
adv_data,
scan_data,
};
- let conn = unwrap!(peripheral::advertise(sd, adv, &config).await);
+ let conn = unwrap!(peripheral::advertise_connectable(sd, adv, &config).await);
info!("advertising done!");