Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 2e21c6a

Browse files
authored
Corrected wrong deprecated
1 parent 68707a3 commit 2e21c6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: DHTesp.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
2018-01-08: Added ESP8266 (and probably AVR) compatibility.
3737
2018-03-11: Updated DHT example
3838
2018-06-19: Updated DHT example to distinguish between ESP8266 examples and ESP32 examples
39-
2018-07-06: Fixed bug in ESP32 example
39+
2018-07-06: Fixed bug in ESP32 example
40+
2018^07-17: Use correct field separator in keywords.txt + corrected wrong deprecation
4041
******************************************************************/
4142

4243
#ifndef dhtesp_h
@@ -121,7 +122,8 @@ class DHTesp
121122
TempAndHumidity values;
122123

123124
// setup(dhtPin) is deprecated, auto detection is not working well on ESP32. Use setup(dhtPin, DHTesp::DHT11) instead!
124-
void setup(uint8_t pin, DHT_MODEL_t model=AUTO_DETECT) __attribute__((deprecated));
125+
void setup(uint8_t dhtPin) __attribute__((deprecated));
126+
void setup(uint8_t pin, DHT_MODEL_t model=AUTO_DETECT);
125127
void resetTimer();
126128

127129
float getTemperature();

0 commit comments

Comments
 (0)