mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-22 22:17:53 -05:00
SDK v6: Use unique IDs for identifying RGBControllers in SDK protocol
This commit is contained in:
@@ -20,14 +20,14 @@ const char openrgb_sdk_magic[OPENRGB_SDK_MAGIC_SIZE] = { 'O', 'R', 'G', 'B' };
|
||||
void InitNetPacketHeader
|
||||
(
|
||||
NetPacketHeader * pkt_hdr,
|
||||
unsigned int pkt_dev_idx,
|
||||
unsigned int pkt_dev_id,
|
||||
unsigned int pkt_id,
|
||||
unsigned int pkt_size
|
||||
)
|
||||
{
|
||||
memcpy(pkt_hdr->pkt_magic, openrgb_sdk_magic, sizeof(openrgb_sdk_magic));
|
||||
|
||||
pkt_hdr->pkt_dev_idx = pkt_dev_idx;
|
||||
pkt_hdr->pkt_dev_id = pkt_dev_id;
|
||||
pkt_hdr->pkt_id = pkt_id;
|
||||
pkt_hdr->pkt_size = pkt_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user