mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 07:17:27 -04:00
Fix possible loss of data warning in ZETBladeOpticalController.cpp
This commit is contained in:
1 parent
7c1d096d46
commit
0f0f3885aa
1 file changed
+1
-1
@@ -125,7 +125,7 @@ void ZETBladeOpticalController::SetLEDDirect(const std::vector<RGBColor>& colors
|
||||
| Packets have colors in groups of 4 bytes, with |
|
||||
| the first byte being key id and then R, G, B. |
|
||||
\*-------------------------------------------------*/
|
||||
buf[buf_idx] = color_idx + skipped + ZET_BLADE_OPTICAL_KEY_OFFSET;
|
||||
buf[buf_idx] = (unsigned char)(color_idx + skipped + ZET_BLADE_OPTICAL_KEY_OFFSET);
|
||||
buf[buf_idx + 1] = RGBGetRValue(colors[color_idx]);
|
||||
buf[buf_idx + 2] = RGBGetGValue(colors[color_idx]);
|
||||
buf[buf_idx + 3] = RGBGetBValue(colors[color_idx]);
|
||||
|
||||
Reference in new issue
Block a user