summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_bas_peripheral.rs
diff options
context:
space:
mode:
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);
}