restructured DisplayController
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user