Fix wrong comparaison

This commit is contained in:
Luc 2019-03-17 09:28:44 +01:00
parent 3b5c932ae6
commit 40c5156be5
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)