When using this library i noticed a big difference between written and read compensations. So for example a temperature of 22.15°C and humidity of 52.70% will get to 21.85°C and 52%.
The problem here is that the corresponding float values are converted into an integer before multiplication by 64 or 512 and thus the loss of precision is higher. I have adjusted this accordingly with this pull request
When using this library i noticed a big difference between written and read compensations. So for example a temperature of 22.15°C and humidity of 52.70% will get to 21.85°C and 52%. The problem here is that the corresponding float values are converted into an integer before multiplication by 64 or 512 and thus the loss of precision is higher. I have adjusted this accordingly with this pull request