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

Method isHeaterOn

libraries/SHT31/SHT31.cpp:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215bool SHT31::isHeaterOn()
216{
217 if (_heaterOn == false)
218 {
219 return false;
220 }
221 // did not exceed time out
222 if (millis() - _heaterStart < (_heatTimeout * 1000UL))
223 {
224 return true;
225 }
226 heatOff();
227 return false;
228}
229
230
231bool SHT31::requestData()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36