diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-02-26 00:43:20 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-02-26 00:43:20 +0100 |
commit | fe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5 (patch) | |
tree | 91a92da5dfc9e22cee6164862760797c3c1d9178 /examples/src/bin/ble_bas_peripheral.rs | |
parent | eb0994c1a0824d385c0bcbd378b302ca697fb575 (diff) | |
download | nrf-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.rs | 4 |
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); } |