Re: [PATCH v3] iio: bmp280: fix compensation of humidity

2020-05-10 Thread Jonathan Cameron
On Mon, 4 May 2020 20:10:34 +0200 Andreas Klinger wrote: > Limit the output of humidity compensation to the range between 0 and 100 > percent. > > Depending on the calibration parameters of the individual sensor it > happens, that a humidity above 100 percent or below 0 percent is > calculated,

[PATCH v3] iio: bmp280: fix compensation of humidity

2020-05-04 Thread Andreas Klinger
Limit the output of humidity compensation to the range between 0 and 100 percent. Depending on the calibration parameters of the individual sensor it happens, that a humidity above 100 percent or below 0 percent is calculated, which don't make sense in terms of relative humidity. Add a clamp to t