From 40ed046b4537a9f0827d24b509c2559607703dc4 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 9 Apr 2021 23:14:47 +0200 Subject: [PATCH] fixing some linter stuff --- lib/System/System.cpp | 2 +- lib/System/TaskManager.cpp | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/System/System.cpp b/lib/System/System.cpp index 3ecb43a..6c77c3f 100644 --- a/lib/System/System.cpp +++ b/lib/System/System.cpp @@ -1,7 +1,7 @@ #include "System.h" -System::System(std::shared_ptr boardConfig, std::shared_ptr userConfig) : _boardConfig(boardConfig), _userConfig(userConfig) { +System::System(std::shared_ptr boardConfig, std::shared_ptr userConfig) : _boardConfig(boardConfig), _userConfig(userConfig), _isWifiEthConnected(false) { } System::~System() { diff --git a/lib/System/TaskManager.cpp b/lib/System/TaskManager.cpp index de8173c..ce57033 100644 --- a/lib/System/TaskManager.cpp +++ b/lib/System/TaskManager.cpp @@ -55,17 +55,8 @@ bool TaskManager::loop(std::shared_ptr system) { _nextTask = _tasks.begin(); } bool ret = (*_nextTask)->loop(system); - _nextTask++; + ++_nextTask; return ret; - - for (std::shared_ptr &elem : _tasks) { - // logPrintD("call loop from "); - // logPrintlnD(elem->getName()); - if (!elem->loop(system)) { - return false; - } - } - return true; } void StatusFrame::drawStatusPage(Bitmap &bitmap) {