RobTillaart / DHTNew

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

getType() with detect sensor type #38

Closed budulinek closed 3 years ago

RobTillaart commented 3 years ago

OK, I will review again ...

RobTillaart commented 3 years ago

Looks good!

budulinek commented 3 years ago

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