Add I2C: label to location string for I2C devices
This commit is contained in:
parent
5672f556e9
commit
9fcc8dd573
17 changed files with 22 additions and 19 deletions
|
|
@ -33,9 +33,12 @@ std::string CorsairDominatorPlatinumController::GetDeviceName()
|
|||
|
||||
std::string CorsairDominatorPlatinumController::GetDeviceLocation()
|
||||
{
|
||||
char loc[128];
|
||||
snprintf(loc, sizeof(loc), "%s, address 0x%02X", bus->device_name, dev);
|
||||
return std::string(loc);
|
||||
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("I2C: " + return_string);
|
||||
}
|
||||
|
||||
void CorsairDominatorPlatinumController::SetAllColors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue