Messages in this thread | | | Date | Mon, 07 Sep 2015 10:08:42 +0200 | From | Lars-Peter Clausen <> | Subject | Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support |
| |
On 09/07/2015 06:27 AM, Matt Ranostay wrote: > Thinking this over do we needed a IIO_CHAN_INFO_PROCESSED_OFFSET to > signal that it needs to be after the (value - offset) * scale > calculation?
Well, value * scale + offset = (value + offset/scale) * scale. So just scale your offset inversely to the scale.
| |