iotpipe / esp8266-dht22

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

BUG in DHT_init: redundant 3rd parameter #4

Open Anton-V-K opened 7 years ago

Anton-V-K commented 7 years ago

Both declaration of DHT_init and its implementation have 3-rd parameter count, which isn't explained in the example and really isn't used anywhere - it may be safely removed. Existing code:

void DHT_init(uint8_t pin, uint8_t type, uint8_t count);