scheduler/mqtt running assync with psram, sync without psram

This commit is contained in:
MichaelDvP
2024-08-15 07:56:24 +02:00
parent 7dc4dc67f6
commit 20b833b4ee
5 changed files with 26 additions and 7 deletions

View File

@@ -485,7 +485,6 @@ void System::start() {
// get current memory values
fstotal_ = LittleFS.totalBytes() / 1024; // read only once, it takes 500 ms to read
psram_ = ESP.getPsramSize() / 1024;
appused_ = ESP.getSketchSize() / 1024;
appfree_ = esp_ota_get_running_partition()->size / 1024 - appused_;
refreshHeapMem(); // refresh free heap and max alloc heap