Re: [PATCH v1] iio: gyro: mpu3050: Fix reported temperature value

From: Dmitry Osipenko
Date: Wed Apr 21 2021 - 21:20:58 EST


22.04.2021 03:34, Andy Shevchenko пишет:
> -                       /* The temperature scaling is (x+23000)/280
> Celsius */
> +                       /*
> +                        * The temperature scaling is (x+23000)/280
> Celsius,
> +                        * where 23000 includes room temperature
> offset of
> +                        * +35C, 280 is the precision scale and x is
> the signed
> +                        * 16bit integer which corresponds to the
> temperature
>
>
> “...16-bit signed integer...”
>  
>
> +                        * range of -40C..85C.
>
>
>
> Datasheet says -30°C..+85°C.

Datasheet says this for the "Best fit straight line", while the min
value is -40C.