Fix compiler warning unused parameter...

...'count' [-Wunused-parameter]
This commit is contained in:
Rotzbua 2020-05-21 18:02:10 +02:00 committed by GitHub
parent 44a80e01e6
commit a7157aa586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@
* @param count
* number of sensors
*/
DHT::DHT(uint8_t pin, uint8_t type, uint8_t /*count*/) {
DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) {
(void)count; // Workaround to avoid compiler warning.
_pin = pin;
_type = type;
#ifdef __AVR