Better test time

This commit is contained in:
Johannes Wendel
2020-04-06 16:04:50 +02:00
parent a3bbc3ecf1
commit 362bbd9d36
2 changed files with 6 additions and 2 deletions

View File

@@ -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!";
}