mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 06:25:01 -04:00
Fix a bug in Nollie1
This commit is contained in:
@@ -45,6 +45,20 @@ unsigned short NollieController::GetUSBPID()
|
||||
return(usb_pid);
|
||||
}
|
||||
|
||||
void NollieController::InitChLEDs(int *led_num_list,int ch_num)
|
||||
{
|
||||
unsigned char usb_buf[65];
|
||||
memset(usb_buf, 0x00, sizeof(usb_buf));
|
||||
usb_buf[1] = 0xFE;
|
||||
usb_buf[2] = 0x03;
|
||||
for(int i = 0; i < ch_num; i++)
|
||||
{
|
||||
usb_buf[3+(i*2)] = led_num_list[i]& 0xFF;
|
||||
usb_buf[4+(i*2)] = (led_num_list[i] >> 8) & 0xFF;
|
||||
}
|
||||
hid_write(dev, usb_buf, 65);
|
||||
}
|
||||
|
||||
void NollieController::SetMos(bool mos)
|
||||
{
|
||||
unsigned char usb_buf[65];
|
||||
|
||||
Reference in New Issue
Block a user