iotpipe / esp8266-dht22

A DHT22 library for the ESP8266
MIT License
7 stars 2 forks source link

BUG in dht22.h: duplicate declaration of _type #3

Open Anton-V-K opened 7 years ago

Anton-V-K commented 7 years ago
static uint8_t _pin, _type, _bit, _type;

Duplicate declaration of _type in dht22.h causes compile-time error:

sketch\dht22.h:38:35: error: redefinition of 'uint8_t _type'

 static uint8_t _pin, _type, _bit, _type;

                                   ^

sketch\dht22.h:38:22: error: 'uint8_t _type' previously declared here

 static uint8_t _pin, _type, _bit, _type;

                      ^

The fix: remove duplicate declaration :)