mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 10:13:04 +05:00
refactor: rename the Core task manager to App
This commit is contained in:
1 parent
7f57af0129
commit
de1e43c707
10 files changed
+45
-45
No files matched your search
+3
-3
@@ -65,12 +65,12 @@ static unsigned int minLargestFreeBlock = 0;
|
||||
|
||||
Task restartTask("Restart", Task::Type::ONCE, [](void*) {
|
||||
ESP_LOGI(L_MAIN, "Restart preparation started");
|
||||
coreTaskManager.pause();
|
||||
appTaskManager.pause();
|
||||
sensorsTaskManager.pause();
|
||||
openthermTaskManager.pause();
|
||||
|
||||
// Finish application callbacks and onDone before saving, including with critical heap.
|
||||
coreTaskManager.waitForPaused();
|
||||
appTaskManager.waitForPaused();
|
||||
sensorsTaskManager.waitForPaused();
|
||||
openthermTaskManager.waitForPaused();
|
||||
saveSettingsNow();
|
||||
@@ -87,7 +87,7 @@ static Task maintenanceTask("System maintenance", [](void*) {
|
||||
drainLoggingSerial();
|
||||
});
|
||||
|
||||
// Heap monitoring remains active while the core manager is paused.
|
||||
// Heap monitoring remains active while the App manager is paused.
|
||||
static Task heapTask("Heap monitoring", [](void*) {
|
||||
const auto memory = getMemoryMetrics();
|
||||
unsigned int freeHeap = memory.heap.total_free_bytes;
|
||||
|
||||
Reference in new issue
Block a user