mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-20 09:20:01 -04:00
SDK v6: Use unique IDs for identifying RGBControllers in SDK protocol
This commit is contained in:
1 parent
92f397544b
commit
3d113dab3c
9 files changed
+1012
-342
No files matched your search
+2
-2
@@ -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