Merge pull request #159 from Rotzbua/patch-1

Fix compiler warning unused parameter...
This commit is contained in:
Limor "Ladyada" Fried
2020-05-21 12:16:14 -04:00
committed by GitHub

View File

@@ -40,6 +40,7 @@
* number of sensors * 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; _pin = pin;
_type = type; _type = type;
#ifdef __AVR #ifdef __AVR