mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-23 08:58:58 -04:00
SDK cleanup, update SDK documentation
This commit is contained in:
1 parent
e88f9a1f75
commit
85625a37b2
2 files changed
+69
-36
No files matched your search
+3
-3
@@ -946,7 +946,7 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||
|
||||
memcpy(&zone, data, sizeof(int));
|
||||
|
||||
controllers[header.pkt_dev_idx]->zones[zone].segments.clear();
|
||||
controllers[header.pkt_dev_idx]->ClearSegments(zone);
|
||||
profile_manager->SaveProfile("sizes", true);
|
||||
}
|
||||
break;
|
||||
@@ -954,8 +954,8 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||
case NET_PACKET_ID_RGBCONTROLLER_ADDSEGMENT:
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| Verify the mode description size (first 4 bytes of data) |
|
||||
| matches the packet size in the header |
|
||||
| Verify the segment description size (first 4 bytes of |
|
||||
| data) matches the packet size in the header |
|
||||
\*---------------------------------------------------------*/
|
||||
if(header.pkt_size == *((unsigned int*)data))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user