RobTillaart / DHTNew

Arduino library for DHT11 and DHT22 with automatic sensor recognition
MIT License
99 stars 15 forks source link

getType() with detect sensor type #38

Closed budulinek closed 4 years ago

RobTillaart commented 4 years ago

OK, I will review again ...

RobTillaart commented 4 years ago

Looks good!

budulinek commented 4 years ago

I think that if (_type == 0) read(); is fine. read() knows how to handle situation when _type == 0