Files
bobbycar-boardcomputer-firm…/main/bobbyerrorhandler.cpp

15 lines
405 B
C++
Raw Normal View History

#include "bobbyerrorhandler.h"
// 3rdparty lib includes
#include <screenmanager.h>
// local includes
#include "displays/bobbypopupdisplay.h"
2022-06-15 10:55:35 +02:00
void BobbyErrorHandler::errorOccurred(std::string &&error)
{
auto newDisplay = std::make_unique<BobbyPopupDisplay>(std::move(error), std::move(espgui::currentDisplay));
2023-08-13 20:13:05 +02:00
newDisplay->initOverlay(tft);
espgui::currentDisplay = std::move(newDisplay);
}