diff options
Diffstat (limited to 'examples/src/bin')
-rw-r--r-- | examples/src/bin/ble_bas_peripheral.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs index ed70584..8373d6d 100644 --- a/examples/src/bin/ble_bas_peripheral.rs +++ b/examples/src/bin/ble_bas_peripheral.rs @@ -96,7 +96,7 @@ async fn bluetooth_task(sd: &'static Softdevice) { info!("advertising done!"); - // Detach the connection so it isn't disconnected when dropped. + // Run the GATT server on the connection. This returns when the connection gets disconnected. let res = gatt_server::run(&conn, &server, |e| match e { BatteryServiceEvent::BatteryLevelWrite(data) => { info!("wrote battery level: {:u8}", data) |