Skip to content

Commit a7157aa

Browse files
authored
Fix compiler warning unused parameter...
...'count' [-Wunused-parameter]
1 parent 44a80e0 commit a7157aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DHT.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
* @param count
3838
* number of sensors
3939
*/
40-
DHT::DHT(uint8_t pin, uint8_t type, uint8_t /*count*/) {
40+
DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) {
41+
(void)count; // Workaround to avoid compiler warning.
4142
_pin = pin;
4243
_type = type;
4344
#ifdef __AVR

0 commit comments

Comments
 (0)