From e807a9eaec0d633a0c27a8b0b53fc32c061eba06 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 19 Oct 2021 15:32:16 +0200 Subject: [PATCH] Specify unit in log output --- examples/nrf/src/bin/temp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { loop { let value = temp.read().await; - info!("temperature: {}", value.to_num::()); + info!("temperature: {}℃", value.to_num::()); Timer::after(Duration::from_secs(1)).await; } }