@@ -57,7 +57,7 @@ int ValkyrieKeyboardController::GetInterfaceNum()
57
57
return (interface_num);
58
58
}
59
59
60
- void ValkyrieKeyboardController::SendColors (unsigned char * color_data,unsigned int color_data_size)
60
+ void ValkyrieKeyboardController::SendColors (unsigned char * color_data, unsigned int /* color_data_size*/ )
61
61
{
62
62
unsigned char usb_buf_pro[392 ];
63
63
unsigned char usb_buf_normal[408 ];
@@ -86,8 +86,8 @@ void ValkyrieKeyboardController::SendColors(unsigned char* color_data,unsigned
86
86
}
87
87
}
88
88
89
-
90
89
SendInitializeColorPacket ();
90
+
91
91
for (int i = 0 ; i <= 6 ; i++)
92
92
{
93
93
unsigned int usb_data_num = 16 ;
@@ -100,23 +100,24 @@ void ValkyrieKeyboardController::SendColors(unsigned char* color_data,unsigned
100
100
101
101
switch (interface_num)
102
102
{
103
- case 3 :
104
- for (int index = 0 ; index < usb_data_num; index++)
105
- {
106
- send_usb_buf[index * 4 + 1 ] = usb_buf_pro[index * 4 + i * 64 ];
107
- send_usb_buf[index * 4 + 2 ] = usb_buf_pro[index * 4 + i * 64 + 1 ];
108
- send_usb_buf[index * 4 + 3 ] = usb_buf_pro[index * 4 + i * 64 + 2 ];
109
- send_usb_buf[index * 4 + 4 ] = usb_buf_pro[index * 4 + i * 64 + 3 ];
110
- }
111
- break ;
112
- default :
113
- for (int index = 0 ; index < usb_data_num; index++)
114
- {
115
- send_usb_buf[index * 4 + 1 ] = usb_buf_normal[index * 4 + i * 64 ];
116
- send_usb_buf[index * 4 + 2 ] = usb_buf_normal[index * 4 + i * 64 + 1 ];
117
- send_usb_buf[index * 4 + 3 ] = usb_buf_normal[index * 4 + i * 64 + 2 ];
118
- send_usb_buf[index * 4 + 4 ] = usb_buf_normal[index * 4 + i * 64 + 3 ];
119
- }
103
+ case 3 :
104
+ for (unsigned int index = 0 ; index < usb_data_num; index++)
105
+ {
106
+ send_usb_buf[index * 4 + 1 ] = usb_buf_pro[index * 4 + i * 64 ];
107
+ send_usb_buf[index * 4 + 2 ] = usb_buf_pro[index * 4 + i * 64 + 1 ];
108
+ send_usb_buf[index * 4 + 3 ] = usb_buf_pro[index * 4 + i * 64 + 2 ];
109
+ send_usb_buf[index * 4 + 4 ] = usb_buf_pro[index * 4 + i * 64 + 3 ];
110
+ }
111
+ break ;
112
+ default :
113
+ for (unsigned int index = 0 ; index < usb_data_num; index++)
114
+ {
115
+ send_usb_buf[index * 4 + 1 ] = usb_buf_normal[index * 4 + i * 64 ];
116
+ send_usb_buf[index * 4 + 2 ] = usb_buf_normal[index * 4 + i * 64 + 1 ];
117
+ send_usb_buf[index * 4 + 3 ] = usb_buf_normal[index * 4 + i * 64 + 2 ];
118
+ send_usb_buf[index * 4 + 4 ] = usb_buf_normal[index * 4 + i * 64 + 3 ];
119
+ }
120
+ break ;
120
121
}
121
122
122
123
/* -----------------------------------------------------*\
0 commit comments