On Sun, Jun 1, 2025 at 8:21 PM Lothar Rubusch <l.rubusch@xxxxxxxxx> wrote: > > Rework controlling measurement and standby of the sensor. Therefore, > replace writing the register directly by encapsulating this and dealing > with the return value in a separte function to enable and disable separate (Please, go with a spell check before sending a new version) > measurement. This will help to avoid redundant code in all locations > where the sensor configuration needs to be adjusted, thus measurement will > be set to standby, in follow up patches. > > Further, reduce the control mask to only the measurement bit. The sleep bit > actually controls a different behavior (not just putting the sensor to > standby for configuration, but turning it into sleep mode) and it is not > used so far. In consequence, there is no need to cover sleep bit and cover the sleep > measurement with the same mask. -- With Best Regards, Andy Shevchenko