Add location to Polychrome controller

This commit is contained in:
Adam Honse committed 2020-09-06 12:44:34 -05:00
1 parent 9be25d1ca4
commit 3e62c91ed3
3 files changed
+12

No files matched your search

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