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
commit 8de033bae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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