summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_bas_peripheral.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-09-16 21:40:46 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-09-16 21:40:46 +0200
commit9aa2ad0377b4b75f7a8602a51bf9d4eea2a36e84 (patch)
tree293b1c95e5217b68fdde3a18502e0414061e2fa5 /examples/src/bin/ble_bas_peripheral.rs
parent68eb8b222c2ae61f0bbb2df1839f62886f5f8623 (diff)
downloadnrf-softdevice-9aa2ad0377b4b75f7a8602a51bf9d4eea2a36e84.zip
Fix comment
Diffstat (limited to 'examples/src/bin/ble_bas_peripheral.rs')
-rw-r--r--examples/src/bin/ble_bas_peripheral.rs2
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)