|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
|
|
|
|
|
#define _WIFIMGR_LOGLEVEL_ 0 |
|
|
|
|
#define DEBUG 0 |
|
|
|
|
//#define _WIFIMGR_LOGLEVEL_ 4
|
|
|
|
|
//#define DEBUG 1
|
|
|
|
|
|
|
|
|
|
#include <WiFi.h> |
|
|
|
|
#include <WiFiManager.h> |
|
|
|
@ -427,7 +427,15 @@ void get_sensor_data(void) |
|
|
|
|
heat[ACT] = constrain(dht.computeHeatIndex(temp[ACT], hum[ACT], false), -40.0, 80.0); |
|
|
|
|
|
|
|
|
|
if (minmax_enabled == false && millis() > FIRST_MIN_MAX) |
|
|
|
|
{ |
|
|
|
|
minmax_enabled = true; |
|
|
|
|
temp[MIN] = temp[ACT]; |
|
|
|
|
temp[MAX] = temp[ACT]; |
|
|
|
|
hum[MIN] = hum[ACT]; |
|
|
|
|
hum[MAX] = hum[ACT]; |
|
|
|
|
heat[MIN] = heat[ACT]; |
|
|
|
|
heat[MIN] = heat[ACT]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (minmax_enabled == true) |
|
|
|
|
{ |
|
|
|
|