Store name in GigabyteAorusLaptopController to avoid setting it in detector
This commit is contained in:
parent
7d0db424ec
commit
cba7c016d3
4 changed files with 25 additions and 26 deletions
|
|
@ -32,11 +32,11 @@ static unsigned char argb_colour_index_data[2][2][2] =
|
|||
{ 0x05, 0x07 }, } //G1 R1
|
||||
};
|
||||
|
||||
GigabyteAorusLaptopController::GigabyteAorusLaptopController(hid_device* dev_handle, const hid_device_info& info)
|
||||
GigabyteAorusLaptopController::GigabyteAorusLaptopController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
GigabyteAorusLaptopController::~GigabyteAorusLaptopController()
|
||||
|
|
@ -44,6 +44,11 @@ GigabyteAorusLaptopController::~GigabyteAorusLaptopController()
|
|||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string GigabyteAorusLaptopController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string GigabyteAorusLaptopController::GetDeviceLocation()
|
||||
{
|
||||
return("HID: " + location);
|
||||
|
|
@ -62,11 +67,6 @@ std::string GigabyteAorusLaptopController::GetSerialString()
|
|||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string GigabyteAorusLaptopController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void GigabyteAorusLaptopController::SetDirect(uint8_t brightness, RGBColor color)
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue