diff --git a/src/app/ScreenManager.cpp b/src/app/ScreenManager.cpp index 1a67b63..93836a4 100644 --- a/src/app/ScreenManager.cpp +++ b/src/app/ScreenManager.cpp @@ -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; diff --git a/src/app/ScreenManager.h b/src/app/ScreenManager.h index 40d3a2e..9b6a400 100644 --- a/src/app/ScreenManager.h +++ b/src/app/ScreenManager.h @@ -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);