Try to implement DisplayController

This commit is contained in:
Johannes Wendel
2020-02-19 13:43:59 +01:00
parent a2e3ede062
commit e4ed6654aa
9 changed files with 31 additions and 28 deletions

View File

@@ -45,8 +45,8 @@ std::string Display::fit_score_string(std::string & score_string, const unsigned
if (score_length > length)
{
CLOG(DEBUG, OUTPUT_LOGGER) << "Score too long for display";
std::string full_display;
return full_display.insert(0, length, '9');
std::string filled_display;
return filled_display.insert(0, length, '9');
}
score_string.insert(0, length - score_length, '\0');