Store name in NvidiaESAController to avoid setting it in detector
This commit is contained in:
parent
520b83a226
commit
9470cb69fd
4 changed files with 18 additions and 18 deletions
|
|
@ -13,11 +13,11 @@
|
|||
#include "NvidiaESAController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
NvidiaESAController::NvidiaESAController(hid_device* dev_handle, const hid_device_info& info)
|
||||
NvidiaESAController::NvidiaESAController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
NvidiaESAController::~NvidiaESAController()
|
||||
|
|
@ -30,6 +30,11 @@ std::string NvidiaESAController::GetDeviceLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string NvidiaESAController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string NvidiaESAController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
|
@ -43,11 +48,6 @@ std::string NvidiaESAController::GetSerialString()
|
|||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string NvidiaESAController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void NvidiaESAController::SetZoneColor(unsigned int zone_idx, RGBColor color)
|
||||
{
|
||||
unsigned char red = (unsigned char)(0x0F - 0x0F * RGBGetRValue(color) / 255.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue