Added the forceRefresh method

This commit is contained in:
anschrammh 2020-02-02 20:55:28 +01:00
parent fe8b51d3a8
commit 741eee8f5d
2 changed files with 8 additions and 0 deletions

View File

@ -251,6 +251,13 @@ void ScreenManager::run()
}
}
void ScreenManager::forceRefresh()
{
if(!_enabled) return;
_forceRefresh = true;
run();
}
boolean ScreenManager::displayView(const uint8_t UID)
{
if(!_enabled) return true;

View File

@ -19,6 +19,7 @@ class ScreenManager
boolean displayView(const uint8_t UID);
void displayNextView();
void displayPreviousView();
void forceRefresh();
boolean applyCfgFromSD();
void invertDisplayColor(const boolean inverted);
void orientDisplay(const Orientation orientation);