Re: [PATCH v2] IIO: bmp280-core.c: fix error in humidity calculation
From: Linus Walleij
Date: Tue Apr 11 2017 - 03:46:37 EST
On Mon, Apr 10, 2017 at 7:00 PM, Andreas Klinger <ak@xxxxxxxxxxxxx> wrote:
> While calculating the compensation of the humidity there are negative values
> interpreted as unsigned because of unsigned variables used. These values as
> well as the constants need to be casted to signed as indicated by the
> documentation of the sensor.
>
> Changes in v2:
> - cast also constants to signed; otherwise calculation is not correct
>
> I removed the Acked-By of Linus Walleij because of another change in the
> calculation. Don't know how it should be treated.
Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
You guys do an awesome job at maintaining the sensor code, thanks.
Yours,
Linus Walleij