MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / heatOn

Method heatOn

libraries/SHT31/SHT31.cpp:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182bool SHT31::heatOn()
183{
184 if (isHeaterOn()) return true;
185 if ((_heaterStop > 0) && (millis() - _heaterStop < SHT31_HEATER_TIMEOUT))
186 {
187 _error = SHT31_ERR_HEATER_COOLDOWN;
188 return false;
189 }
190 if (writeCmd(SHT31_HEAT_ON) == false)
191 {
192 _error = SHT31_ERR_HEATER_ON;
193 return false;
194 }
195 _heaterStart = millis();
196 _heaterOn = true;
197 return true;
198}
199
200
201bool SHT31::heatOff()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36