Better test time
This commit is contained in:
@@ -163,15 +163,19 @@ void OutputDriver::shut_down_driver() const
|
||||
|
||||
void OutputDriver::rotate_displays() const
|
||||
{
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Running display test!";
|
||||
for (auto display : this->get_displays())
|
||||
{
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Testing display " << display->get_name();
|
||||
for (int i = 8; i < 100000000; i = i*10)
|
||||
{
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Score " << i;
|
||||
display->write_score(i);
|
||||
sleep(1);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||
}
|
||||
display->write_score(0);
|
||||
}
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Display test finished!";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user