Store name in SRGBmodsControllers to avoid setting it in detectors
This commit is contained in:
parent
840512751c
commit
1bd9215a72
7 changed files with 34 additions and 20 deletions
|
|
@ -15,10 +15,11 @@
|
|||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
SRGBmodsPicoController::SRGBmodsPicoController(hid_device* dev_handle, const char* path)
|
||||
SRGBmodsPicoController::SRGBmodsPicoController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| The SRGBmods Pico controller requires a packet within |
|
||||
|
|
@ -56,6 +57,11 @@ std::string SRGBmodsPicoController::GetLocationString()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string SRGBmodsPicoController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string SRGBmodsPicoController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue