diff options
| author | Ulf Lilleengen <[email protected]> | 2021-10-19 15:32:16 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2021-10-19 15:32:16 +0200 |
| commit | e807a9eaec0d633a0c27a8b0b53fc32c061eba06 (patch) | |
| tree | 6aafdba5fe45f46dc6b6df207f51d8e6c5d9ec55 /examples/nrf/src | |
| parent | c777b6aae17517d59f3a905785bf98346877f0a1 (diff) | |
Specify unit in log output
Diffstat (limited to 'examples/nrf/src')
| -rw-r--r-- | examples/nrf/src/bin/temp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/temp.rs b/examples/nrf/src/bin/temp.rs index 04d1d58fe..af9775f5a 100644 --- a/examples/nrf/src/bin/temp.rs +++ b/examples/nrf/src/bin/temp.rs | |||
| @@ -20,7 +20,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { | |||
| 20 | 20 | ||
| 21 | loop { | 21 | loop { |
| 22 | let value = temp.read().await; | 22 | let value = temp.read().await; |
| 23 | info!("temperature: {}", value.to_num::<u16>()); | 23 | info!("temperature: {}℃", value.to_num::<u16>()); |
| 24 | Timer::after(Duration::from_secs(1)).await; | 24 | Timer::after(Duration::from_secs(1)).await; |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
