From d371eeb2678bd84264572f3df9df623b99058a8c Mon Sep 17 00:00:00 2001 From: anschrammh Date: Mon, 20 Jan 2020 08:01:25 +0100 Subject: [PATCH] Added a run method which is including run methods from different services --- src/app/SAB.cpp | 8 ++++++++ src/app/SAB.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/app/SAB.cpp b/src/app/SAB.cpp index abb1a97..1e9a6dc 100644 --- a/src/app/SAB.cpp +++ b/src/app/SAB.cpp @@ -138,3 +138,11 @@ unsigned char SAB::getError() const { return _error; } + +void SAB::run() +{ + _webServer.run(); + _ftpServer.run(); + _taskSchedulerManager.run(); + _screenManager.run(); +} diff --git a/src/app/SAB.h b/src/app/SAB.h index 707052c..74dfab4 100644 --- a/src/app/SAB.h +++ b/src/app/SAB.h @@ -41,6 +41,7 @@ class SAB PowerManager& getPowerManager(); TimeSpan getUpTime(); BoardConfig getBoardConfig() const; + void run(); const char *getSoftVersion() const; unsigned char getError() const;