Fix possible loss of data warning in ZETBladeOpticalController.cpp
This commit is contained in:
parent
7c1d096d46
commit
0f0f3885aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue