Store name in LGMonitorController to avoid setting it in detector
This commit is contained in:
parent
2a6856a5d2
commit
c313b19fc5
4 changed files with 14 additions and 15 deletions
|
|
@ -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)
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue