added display init
This commit is contained in:
@@ -28,9 +28,14 @@ DisplayController::DisplayController(std::map<std::string, std::shared_ptr<items
|
||||
this->displays.push_back(std::dynamic_pointer_cast<items::OutputDisplay>(display.second));
|
||||
}
|
||||
|
||||
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
|
||||
for(auto &display : this->displays) {
|
||||
pin_controller->initDisplay(*display);
|
||||
}
|
||||
|
||||
activate_displays();
|
||||
|
||||
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
|
||||
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Created DisplayController and started cycling them.";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user