From cfae02aaa592526aa637c3d0df056ea84b3a9411 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 30 Jul 2019 13:54:12 +0200 Subject: [PATCH] show free heap --- src/main.cpp | 2 ++ src/network/XD0OTA.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 277f9ce..b1d466d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -383,6 +383,8 @@ void printValues() { Serial.println(sensor_readings.pm10); } + Serial.print("Free HEAP: "); Serial.println(ESP.getFreeHeap()); + } void sendValues() { diff --git a/src/network/XD0OTA.cpp b/src/network/XD0OTA.cpp index 8586e93..3cd9b7d 100644 --- a/src/network/XD0OTA.cpp +++ b/src/network/XD0OTA.cpp @@ -131,5 +131,6 @@ int XD0OTA::checkForUpdates(String url) { newVersion = -1; } httpClient.end(); + client.stop(); return newVersion; }