RobTillaart / SHT31

Arduino library for the SHT31 temperature and humidity sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add lastHeaterStopTime variable to prevent switching on the heater too early

RobTillaart opened this issue · comments

Goal is to prevent that the heater is switched on after it just have been switched of.

The library cannot prevent heating over reboots, but at least it can in normal operation.

if this works the SHT85 needs similar fix.

When heaterOn() is called multiple times, then the _heaterStart moment is set multiple times.
This can result in too long heat cycles, so at least a _heaterOn flag should be kept.

Solved in 0.3.3