Skip to content

Commit

Permalink
Corsair Void: Use first interface
Browse files Browse the repository at this point in the history
Mac seems to user a different
interfaceid now
We simply take now the first
enumerated interfaceid (0)

Fixes #281
  • Loading branch information
Sapd committed Mar 31, 2023
1 parent eb8d6ae commit 40d2d00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/corsair_void.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ void void_init(struct device** device)

device_void.capabilities = B(CAP_SIDETONE) | B(CAP_BATTERY_STATUS) | B(CAP_NOTIFICATION_SOUND) | B(CAP_LIGHTS);
device_void.capability_details[CAP_SIDETONE] = (struct capability_detail) { .usagepage = 0xff00, .usageid = 0x1, .interface = 0 };
device_void.capability_details[CAP_BATTERY_STATUS] = (struct capability_detail) { .usagepage = 0xffc5, .usageid = 0x1, .interface = 3 };
device_void.capability_details[CAP_NOTIFICATION_SOUND] = (struct capability_detail) { .usagepage = 0xffc5, .usageid = 0x1, .interface = 3 };
device_void.capability_details[CAP_LIGHTS] = (struct capability_detail) { .usagepage = 0xffc5, .usageid = 0x1, .interface = 3 };
device_void.capability_details[CAP_BATTERY_STATUS] = (struct capability_detail) { .usagepage = 0xff00, .usageid = 0x1, .interface = 0 };
device_void.capability_details[CAP_NOTIFICATION_SOUND] = (struct capability_detail) { .usagepage = 0xffc5, .usageid = 0x1, .interface = 0 };
device_void.capability_details[CAP_LIGHTS] = (struct capability_detail) { .usagepage = 0xffc5, .usageid = 0x1, .interface = 0 };

device_void.send_sidetone = &void_send_sidetone;
device_void.request_battery = &void_request_battery;
Expand Down

0 comments on commit 40d2d00

Please sign in to comment.