On Mon, Jun 13, 2022 at 3:17 AM Jakob Hauser <jahau@xxxxxxxxxxxxxx> wrote: > > The raw temperature value is a number of counts from a certain starting > point. The resolution of the temperature counts is different for the YAS > variants. > > Temperature compensation for YAS532 version AC seems to be handled differently. > It uses the deviation from 20 degree Celsius [1] whereas YAS530 and older > versions of YAS532 apply solely the t value as a multiplier [2][3]. > > In funtion yas5xx_read_raw(), add case IIO_CHAN_INFO_PROCESSED. Remove scale > of temperature as this isn't applied. > > Additionally correct sign of temperature channel in iio_chan_spec. It's already > defined that way in yas5xx_get_measure() function. in the ... Please add default cases into switches. -- With Best Regards, Andy Shevchenko