summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_bas_peripheral.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-02-26 00:43:20 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-02-26 00:43:20 +0100
commitfe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5 (patch)
tree91a92da5dfc9e22cee6164862760797c3c1d9178 /examples/src/bin/ble_bas_peripheral.rs
parenteb0994c1a0824d385c0bcbd378b302ca697fb575 (diff)
downloadnrf-softdevice-fe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5.zip
Updat examples to defmt 0.2
Diffstat (limited to 'examples/src/bin/ble_bas_peripheral.rs')
-rw-r--r--examples/src/bin/ble_bas_peripheral.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs
index 7d754b0..89c4621 100644
--- a/examples/src/bin/ble_bas_peripheral.rs
+++ b/examples/src/bin/ble_bas_peripheral.rs
@@ -59,13 +59,13 @@ async fn bluetooth_task(sd: &'static Softdevice, config: peripheral::Config) {
// 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(val) => {
- info!("wrote battery level: {:u8}", val);
+ info!("wrote battery level: {}", val);
if let Err(e) = server.battery_level_notify(&conn, val + 1) {
info!("send notification error: {:?}", e);
}
}
BatteryServiceEvent::FooWrite(val) => {
- info!("wrote battery level: {:u16}", val);
+ info!("wrote battery level: {}", val);
if let Err(e) = server.foo_notify(&conn, val + 1) {
info!("send notification error: {:?}", e);
}