Add location to Polychrome controller
This commit is contained in:
parent
9be25d1ca4
commit
3e62c91ed3
3 changed files with 12 additions and 0 deletions
|
|
@ -62,6 +62,16 @@ unsigned int PolychromeController::GetASRockType()
|
|||
return(asrock_type);
|
||||
}
|
||||
|
||||
std::string PolychromeController::GetDeviceLocation()
|
||||
{
|
||||
std::string return_string(bus->device_name);
|
||||
char addr[5];
|
||||
snprintf(addr, 5, "0x%02X", dev);
|
||||
return_string.append(", address ");
|
||||
return_string.append(addr);
|
||||
return(return_string);
|
||||
}
|
||||
|
||||
std::string PolychromeController::GetDeviceName()
|
||||
{
|
||||
return(device_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue