mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-21 08:05:03 -04:00
Fix possible loss of data warning in NanoleafController.cpp
This commit is contained in:
1 parent
b258f9a683
commit
749c4d0f37
1 file changed
+2
-2
@@ -187,7 +187,7 @@ void NanoleafController::UpdateLEDs(std::vector<RGBColor>& colors)
|
||||
message[(7 * i) + 6 + 1] = (uint8_t)0; /* transitionTime */
|
||||
}
|
||||
|
||||
external_control_socket.udp_write((char*)message, (size * 7) + 1);
|
||||
external_control_socket.udp_write((char*)message, ((int)size * 7) + 1);
|
||||
|
||||
free(message);
|
||||
}
|
||||
@@ -227,7 +227,7 @@ void NanoleafController::UpdateLEDs(std::vector<RGBColor>& colors)
|
||||
message[(8 * i) + 7 + 2] = (uint8_t)0; /* transitionTime L */
|
||||
}
|
||||
|
||||
external_control_socket.udp_write((char *)message, (size * 8) + 2);
|
||||
external_control_socket.udp_write((char *)message, ((int)size * 8) + 2);
|
||||
|
||||
free(message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user