Fix warnings in QMKKeychronController

This commit is contained in:
Adam Honse
2026-07-03 17:08:34 -05:00
parent 6b8db478fb
commit 971a2cc300
2 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ void QMKKeychronController::SaveMode()
void QMKKeychronController::SendLEDs(unsigned short number_leds, RGBColor* color_data)
{
unsigned short led_start_index = 0;
unsigned char number_packet_leds = 9;
unsigned short number_packet_leds = 9;
while(led_start_index < number_leds)
{
@@ -218,7 +218,7 @@ void QMKKeychronController::SendLEDs(unsigned short number_leds, RGBColor* color
number_packet_leds = (number_leds - led_start_index);
}
CmdSendLEDs(led_start_index, number_packet_leds, &color_data[led_start_index]);
CmdSendLEDs((unsigned char)led_start_index, (unsigned char)number_packet_leds, &color_data[led_start_index]);
led_start_index += number_packet_leds;
}