File tree Expand file tree Collapse file tree
Controllers/SRGBmodsController Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919void 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);
You can’t perform that action at this time.
0 commit comments