Implemented better error handling and performance improvements

This commit is contained in:
2021-07-13 21:38:25 +02:00
parent 57ebd8cbd3
commit 845a39f12b
4 changed files with 101 additions and 93 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ DHT_Unified::DHT_Unified(uint8_t pin, uint8_t type, uint8_t count,
/*!
* @brief Setup sensor (calls begin on It)
*/
void DHT_Unified::begin() { _dht.begin(); }
bool DHT_Unified::begin() { return _dht.begin(); }
/*!
* @brief Sets sensor name