mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Store name in LGMonitorController to avoid setting it in detector
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
#include "LGMonitorController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
LGMonitorController::LGMonitorController(hid_device* dev_handle, const hid_device_info& info)
|
||||
LGMonitorController::LGMonitorController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
LGMonitorController::~LGMonitorController()
|
||||
@@ -30,6 +30,11 @@ std::string LGMonitorController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string LGMonitorController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string LGMonitorController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
@@ -43,11 +48,6 @@ std::string LGMonitorController::GetSerialString()
|
||||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string LGMonitorController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void LGMonitorController::SetDirect(const std::vector<RGBColor> colors)
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
||||
Reference in New Issue
Block a user