diff --git a/src/config.h b/src/config.h index 96c9b4bb..b2b15860 100644 --- a/src/config.h +++ b/src/config.h @@ -19,7 +19,7 @@ */ //version and sources location -#define FW_VERSION "2.0.0.c23" +#define FW_VERSION "2.0.0.c24" #define REPOSITORY "https://github.com/luc-github/ESP3D" //Customize ESP3D //////////////////////////////////////////////////////////////////////// @@ -111,7 +111,7 @@ #endif #ifdef DHT_FEATURE -#define ESP_DHT_PIN 2 +#define ESP_DHT_PIN 15 #endif //Pins where the screen is connected diff --git a/src/esp3d.cpp b/src/esp3d.cpp index 2a428cad..bf6adbbc 100644 --- a/src/esp3d.cpp +++ b/src/esp3d.cpp @@ -292,7 +292,7 @@ void Esp3D::process() last_dht_update = now_dht; float humidity = dht.getHumidity(); float temperature = dht.getTemperature(); - if (dht.getStatusString() == "OK") { + if (strcmp(dht.getStatusString(),"OK") == 0) { String s = String(temperature,2); String s2 = s + " " +String(humidity,2); #if defined (ASYNCWEBSERVER)