Specify unit in log output

This commit is contained in:
Ulf Lilleengen 2021-10-19 15:32:16 +02:00
parent c777b6aae1
commit e807a9eaec

View file

@ -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;
} }
} }