Fix warnings in AMBXController.cpp

This commit is contained in:
Adam Honse 2025-07-02 00:22:52 -05:00
parent 804490399f
commit eecdd4befc

View file

@ -176,9 +176,9 @@ void AMBXController::SetLEDColor(unsigned int led, RGBColor color)
AMBX_PACKET_HEADER,
static_cast<unsigned char>(led),
AMBX_SET_COLOR,
RGBGetRValue(color),
RGBGetGValue(color),
RGBGetBValue(color)
(unsigned char)RGBGetRValue(color),
(unsigned char)RGBGetGValue(color),
(unsigned char)RGBGetBValue(color)
};
SendPacket(color_buf, 6);