mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-13 13:47:02 -04:00
Store name in SRGBmodsControllers to avoid setting it in detectors
This commit is contained in:
1 parent
840512751c
commit
1bd9215a72
7 files changed
+34
-20
No files matched your search
@@ -15,10 +15,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
SRGBmodsLEDControllerV1::SRGBmodsLEDControllerV1(hid_device* dev_handle, const char* path)
|
||||
SRGBmodsLEDControllerV1::SRGBmodsLEDControllerV1(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
SRGBmodsLEDControllerV1::~SRGBmodsLEDControllerV1()
|
||||
@@ -31,6 +32,11 @@ std::string SRGBmodsLEDControllerV1::GetLocationString()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string SRGBmodsLEDControllerV1::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string SRGBmodsLEDControllerV1::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in new issue
Block a user