cargo fmt
This commit is contained in:
parent
849a0e174f
commit
5ae91ed3b6
1 changed files with 2 additions and 2 deletions
|
@ -34,5 +34,5 @@ async fn main(_spawner: Spawner) {
|
|||
|
||||
fn convert_to_celsius(raw_temp: u16) -> f32 {
|
||||
// According to chapter 4.9.5. Temperature Sensor in RP2040 datasheet
|
||||
27.0 - (raw_temp as f32 * 3.3 / 4096.0 -0.706)/0.001721 as f32
|
||||
}
|
||||
27.0 - (raw_temp as f32 * 3.3 / 4096.0 - 0.706) / 0.001721 as f32
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue