Store name in SRGBmodsControllers to avoid setting it in detectors

This commit is contained in:
Adam Honse 2025-08-14 20:11:54 -05:00
parent 840512751c
commit 1bd9215a72
7 changed files with 34 additions and 20 deletions

View file

@ -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];