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; }