mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
DHT new library and uptime support
This commit is contained in:
2
main.ino
2
main.ino
@@ -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) + "%; ");
|
||||
|
||||
Reference in New Issue
Block a user