OpenRGB/Controllers/CorsairICueLinkController/CorsairICueLinkProtocol.cpp
Aiden Vigue cb3f0fdcbd Support for iCUE Link System Hub & attached devices
Commits amended to adhere to OpenRGB code standards and restructure functional layout by Adam Honse <calcprogrammer1@gmail.com>
2025-08-01 21:46:29 -05:00

25 lines
1,009 B
C++

/*---------------------------------------------------------*\
| CorsairICueLinkProtocol.cpp |
| |
| Driver for Corsair iCue Link System Hub |
| |
| Aiden Vigue (acvigue) 2 Mar 2025 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairICueLinkProtocol.h"
const CorsairICueLinkDevice* FindCorsairICueLinkDevice(unsigned char type, unsigned char model)
{
for(size_t i = 0; i < sizeof(known_devices) / sizeof(known_devices[0]); i++)
{
if(known_devices[i].type == type && known_devices[i].model == model)
{
return(&known_devices[i]);
}
}
return nullptr;
}