DHT new library and uptime support

This commit is contained in:
Dmitry Borisenko
2020-02-15 20:17:25 +03:00
parent 92c8b79e2a
commit a2c146a0e9
11 changed files with 164 additions and 24 deletions

View File

@@ -268,7 +268,7 @@ void getMemoryLoad(String text) {
#endif
int memory_remain = ESP.getFreeHeap();
int memory_used = all_memory - memory_remain;
int memory_load = memory_used * 100 / all_memory;
int memory_load = (memory_used * 100) / all_memory;
if (memory_load > 65) Serial.print("Attention!!! too match memory used!!!");
Serial.print(text + " memory used:");
Serial.print(String(memory_load) + "%; ");