Display heap

This commit is contained in:
Mathieu Carbou
2024-12-19 10:05:48 +01:00
parent 7f0154c267
commit 18b3dd9c03

View File

@@ -766,6 +766,8 @@ uint32_t deltaSSE = 10;
uint32_t lastWS = 0;
uint32_t deltaWS = 100;
uint32_t lastHeap = 0;
void loop() {
uint32_t now = millis();
if (now - lastSSE >= deltaSSE) {
@@ -779,4 +781,8 @@ void loop() {
// }
lastWS = millis();
}
if(now - lastHeap >= 2000) {
Serial.printf("Free heap: %" PRIu32 "\n", ESP.getFreeHeap());
lastHeap = now;
}
}