diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-02-26 00:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 00:50:43 +0100 |
commit | 6cf4ada4e51f37b774f3b9000f2c75fd08cf46c3 (patch) | |
tree | 91a92da5dfc9e22cee6164862760797c3c1d9178 /examples/src/bin/ble_bas_peripheral.rs | |
parent | 929ce945ef0c2a351b161769b7d04bb9a7b02d5c (diff) | |
parent | fe0d6510a4aa767b0c2e7b5b0d01f8b93b29e5e5 (diff) | |
download | nrf-softdevice-6cf4ada4e51f37b774f3b9000f2c75fd08cf46c3.zip |
Merge pull request #57 from fnafnio/update-defmt
update defmt and defmt-rtt to 0.2.0
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); } |