Merge branch 'master' of github.com:swinginbird/flippr-code

This commit is contained in:
Jonas Zeunert
2020-01-09 23:28:39 +01:00

View File

@@ -23,16 +23,15 @@ DisplayController::DisplayController(std::map<std::string, std::shared_ptr<items
)
: pin_controller{pin_controller}, is_running(true)
{
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
for (auto display : displays)
{
this->displays.push_back(std::dynamic_pointer_cast<items::OutputDisplay>(display.second));
}
CLOG(DEBUG, OUTPUT_LOGGER) << "Created DisplayController and started cycling them.";
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
activate_displays();
CLOG(DEBUG, OUTPUT_LOGGER) << "Created DisplayController and started cycling them.";
}
DisplayController::~DisplayController()