Fix possible loss of data warning in NZXTHue1Controller.cpp

This commit is contained in:
Adam Honse 2024-07-29 23:40:50 -05:00
parent ab0dfb0f6a
commit 31656bda27

View file

@ -98,7 +98,7 @@ void NZXTHue1Controller::SetEffect
/*-----------------------------------------------------*\
| Send mode and color data |
\*-----------------------------------------------------*/
SendPacket(mode, direction, color_idx, speed, 40, &color_data[0]);
SendPacket(mode, direction, (unsigned char)color_idx, speed, 40, &color_data[0]);
}
}
/*-----------------------------------------------------*\