Specify unit in log output
This commit is contained in:
parent
c777b6aae1
commit
e807a9eaec
@ -20,7 +20,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
|||||||
|
|
||||||
loop {
|
loop {
|
||||||
let value = temp.read().await;
|
let value = temp.read().await;
|
||||||
info!("temperature: {}", value.to_num::<u16>());
|
info!("temperature: {}℃", value.to_num::<u16>());
|
||||||
Timer::after(Duration::from_secs(1)).await;
|
Timer::after(Duration::from_secs(1)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user