Skip to content

Commit 40c5156

Browse files
committed
Fix wrong comparaison
1 parent 3b5c932 commit 40c5156

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
//version and sources location
22-
#define FW_VERSION "2.0.0.c23"
22+
#define FW_VERSION "2.0.0.c24"
2323
#define REPOSITORY "https://github.com/luc-github/ESP3D"
2424

2525
//Customize ESP3D ////////////////////////////////////////////////////////////////////////
@@ -111,7 +111,7 @@
111111
#endif
112112

113113
#ifdef DHT_FEATURE
114-
#define ESP_DHT_PIN 2
114+
#define ESP_DHT_PIN 15
115115
#endif
116116

117117
//Pins where the screen is connected

src/esp3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void Esp3D::process()
292292
last_dht_update = now_dht;
293293
float humidity = dht.getHumidity();
294294
float temperature = dht.getTemperature();
295-
if (dht.getStatusString() == "OK") {
295+
if (strcmp(dht.getStatusString(),"OK") == 0) {
296296
String s = String(temperature,2);
297297
String s2 = s + " " +String(humidity,2);
298298
#if defined (ASYNCWEBSERVER)

0 commit comments

Comments
 (0)