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

@@ -28,10 +28,11 @@ enum
class SRGBmodsLEDControllerV1
{
public:
SRGBmodsLEDControllerV1(hid_device* dev_handle, const char* path);
SRGBmodsLEDControllerV1(hid_device* dev_handle, const char* path, std::string dev_name);
~SRGBmodsLEDControllerV1();
std::string GetLocationString();
std::string GetNameString();
std::string GetSerialString();
void SetChannelLEDs(unsigned char channel, RGBColor * colors, unsigned int num_colors);
@@ -41,6 +42,7 @@ public:
private:
hid_device* dev;
std::string location;
std::string name;
void SendPacket
(