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

Method setType

libraries/DHTINT/dhtint.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73void DHTINT::setType(uint8_t type)
74{
75 if ((type == 0) || (type == 11))
76 {
77 _type = type;
78 _wakeupDelay = DHTLIB_DHT11_WAKEUP;
79 }
80 if (type == 22)
81 {
82 _type = type;
83 _wakeupDelay = DHTLIB_DHT_WAKEUP;
84 }
85}
86
87
88// return values:

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36