From a7157aa5861a461a2476bc4126b78a5d879829e5 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Thu, 21 May 2020 18:02:10 +0200 Subject: [PATCH] Fix compiler warning unused parameter... ...'count' [-Wunused-parameter] --- DHT.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DHT.cpp b/DHT.cpp index 0a72b47..23712fb 100644 --- a/DHT.cpp +++ b/DHT.cpp @@ -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