Skip to content

Commit 98364bc

Browse files
authored
Merge pull request #74 from WootingKb/feature/multi-report-sizes
2 parents 1e629dd + 2a3f699 commit 98364bc

File tree

4 files changed

+177
-189
lines changed

4 files changed

+177
-189
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

22
\.vs/
3+
\.idea/
34

45
windows/\.vs/wooting-analog-reader/v14/\.suo
56

67
windows/Release/
78
windows/Backup/
89
windows/Debug/
910
windows/x64/
11+
windows/**/x64/
1012

1113
*.htm
1214

src/wooting-rgb-sdk.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,12 @@ bool wooting_rgb_array_update_keyboard() {
205205
if (!wooting_rgb_kbd_connected()) {
206206
return false;
207207
}
208-
209-
if (wooting_usb_use_v2_interface()) {
208+
209+
if (wooting_usb_use_multi_report()) {
210+
if (!wooting_usb_send_buffer_v3(*rgb_buffer_matrix)) {
211+
return false;
212+
}
213+
} else if (wooting_usb_use_v2_interface()) {
210214
if (!wooting_usb_send_buffer_v2(*rgb_buffer_matrix)) {
211215
return false;
212216
}

0 commit comments

Comments
 (0)