Merge branch 'develop' into dj1an-dev-sf

This commit is contained in:
Peter Buchegger 2021-09-13 22:27:44 +02:00 committed by GitHub
commit e6d5ebfbe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 2 deletions

View file

@ -42,6 +42,11 @@ void Display::setDisplaySaveTimeout(uint32_t timeout) {
_displaySaveModeTimer.setTimeout(timeout * 1000);
}
void Display::activateDistplay()
{
_disp->displayOn();
}
void Display::update() {
if (_displayFrameRate.check()) {

View file

@ -37,6 +37,8 @@ public:
void activateDisplaySaveMode();
void setDisplaySaveTimeout(uint32_t timeout);
void activateDistplay();
// functions for update loop
void update();
void addFrame(std::shared_ptr<DisplayFrame> frame);

View file

@ -14,7 +14,9 @@ void TaskManager::addAlwaysRunTask(Task *task) {
}
std::list<Task *> TaskManager::getTasks() {
return _tasks;
std::list<Task *> tasks = _alwaysRunTasks;
std::copy(_tasks.begin(), _tasks.end(), std::back_inserter(tasks));
return tasks;
}
bool TaskManager::setup(System &system) {