| 71 | |
| 72 | |
| 73 | void 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: |