On Mon, Jun 13, 2022 at 5:20 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > On Mon, Jun 13, 2022 at 3:18 AM Jakob Hauser <jahau@xxxxxxxxxxxxxx> wrote: Forgot to add that please try to split even more preparatory patches. For example, you may convert existing code to stubs / switch-cases / etc and in the last patch just add the new case or new function / branch. ... > > + /* > > + * Raw temperature value t is number of counts. A product description the number > > + * of YAS537 mentions a temperature resulution of 0.05 °C/count. > > resolution > > > + * A readout of the t value at ca. 20 °C returns approx. 8120 counts. > > + * > > + * 8120 counts x 0.05 °C/count corresponds to a range of 406 °C. > > + * 0 counts would be at theoretical -386 °C. > > + * > > + * The formula used for YAS530/532 needs to be adapted to this > > + * theoretical starting temperature, again calculating with 1/10:s > > + * of degrees Celsius and finally multiplying by 100 to get milli > > + * degrees Celsius. > > + */ -- With Best Regards, Andy Shevchenko