Changed displays from id to name

This commit is contained in:
Johannes Wendel
2020-01-09 22:33:23 +01:00
parent ebf5a158b5
commit 1333445bf5
12 changed files with 28 additions and 35 deletions

View File

@@ -17,16 +17,16 @@ namespace items
namespace detail
{
Display::Display(const uint8_t & address, const uint8_t & id) :
address(address),
id(id)
Display::Display(const uint8_t & address, const std::string & name) :
address{address},
name{name}
{
CLOG(DEBUG, OUTPUT_LOGGER) << "Created display with id " << int{id} << " and address " << int{address} << ".";
CLOG(DEBUG, OUTPUT_LOGGER) << "Created display " << name << " with address " << int{address} << ".";
}
uint8_t Display::get_id() const
std::string Display::get_name() const
{
return this->id;
return this->name;
}
void Display::write_score(const unsigned int & score, const unsigned int & length)