diff --git a/src/screenmanager.cpp b/src/screenmanager.cpp index aca6032..35b341e 100644 --- a/src/screenmanager.cpp +++ b/src/screenmanager.cpp @@ -1,9 +1,17 @@ #include "screenmanager.h" +// system includes #include +// esp-idf includes +#include + namespace espgui { +namespace { +constexpr const char * const TAG = "SCREENMANAGER"; +} // namespace + std::unique_ptr currentDisplay; std::stack> displayStack; @@ -33,7 +41,10 @@ void popScreenImpl(TftInterface &tft) deconstructScreen(); if (displayStack.empty()) + { + ESP_LOGW(TAG, "displayStack is empty"); return; + } currentDisplay = std::move(displayStack.top()); displayStack.pop();