Changed displays from id to name
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user