Skip to content

Commit 530d667

Browse files
Add second SRGBMods Pi Pico string for updated code
1 parent 1c8b3a2 commit 530d667

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Controllers/SRGBmodsController/SRGBmodsControllerDetect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818

1919
void DetectSRGBmodsControllers(hid_device_info* info, const std::string& name)
2020
{
21-
hid_device* dev = hid_open_path(info->path);
21+
hid_device* dev = hid_open_path(info->path);
2222

2323
if(dev)
2424
{
2525
wchar_t product[128];
2626
hid_get_product_string(dev, product, 128);
2727

2828
std::wstring product_str(product);
29-
29+
3030
/*-------------------------------------------------------------------------*\
3131
| Test the product string in case this USB ID is reused for other Pi Pico |
3232
| projects |
3333
\*-------------------------------------------------------------------------*/
34-
if(product_str == L"SRGBmods Pico LED Controller")
34+
if(product_str == L"SRGBmods Pico LED Controller" || product_str == L"Pico LED Controller")
3535
{
3636
SRGBmodsPicoController* controller = new SRGBmodsPicoController(dev, info->path);
3737
RGBController_SRGBmodsPico* rgb_controller = new RGBController_SRGBmodsPico(controller);

0 commit comments

Comments
 (0)