Add location to Polychrome controller

This commit is contained in:
Adam Honse 2020-09-06 12:44:34 -05:00
parent 9be25d1ca4
commit 3e62c91ed3
3 changed files with 12 additions and 0 deletions

View file

@ -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);