mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 15:35:53 +08:00
Fix wrong comparaison
This commit is contained in:
parent
3b5c932ae6
commit
40c5156be5
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//version and sources location
|
//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"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
||||||
|
|
||||||
//Customize ESP3D ////////////////////////////////////////////////////////////////////////
|
//Customize ESP3D ////////////////////////////////////////////////////////////////////////
|
||||||
@ -111,7 +111,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DHT_FEATURE
|
#ifdef DHT_FEATURE
|
||||||
#define ESP_DHT_PIN 2
|
#define ESP_DHT_PIN 15
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//Pins where the screen is connected
|
//Pins where the screen is connected
|
||||||
|
@ -292,7 +292,7 @@ void Esp3D::process()
|
|||||||
last_dht_update = now_dht;
|
last_dht_update = now_dht;
|
||||||
float humidity = dht.getHumidity();
|
float humidity = dht.getHumidity();
|
||||||
float temperature = dht.getTemperature();
|
float temperature = dht.getTemperature();
|
||||||
if (dht.getStatusString() == "OK") {
|
if (strcmp(dht.getStatusString(),"OK") == 0) {
|
||||||
String s = String(temperature,2);
|
String s = String(temperature,2);
|
||||||
String s2 = s + " " +String(humidity,2);
|
String s2 = s + " " +String(humidity,2);
|
||||||
#if defined (ASYNCWEBSERVER)
|
#if defined (ASYNCWEBSERVER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user