diff --git a/src/lib.rs b/src/lib.rs index aa2a7d8..a91e887 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -523,7 +523,7 @@ impl Lis2dh12 { let (out_h, out_l) = self.get_temp_out()?; // 10-bit resolution let value = (i16(out_h) << 8) | i16(out_l); - Ok(25.0 + f32(value)) + Ok(25.0 + f32(value) / 256.0) } /// `REFERENCE` register