1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 23:08:53 -05:00

Initialize context for hid set/get report

This commit is contained in:
Raphael Assenat 2016-10-17 22:21:58 -04:00
parent 835a4935c5
commit bb9e6dce17

11
main.c
View File

@ -455,7 +455,18 @@ int main(void)
intervaltimer_init();
for (i=0; i<num_players; i++) {
int hid_iface_id;
usbpad_init(&usbpads[i]);
// Skip interface 1 (always used for the dataReport)
if (i>0) {
hid_iface_id = i + 1;
} else {
hid_iface_id = i;
}
usb_params.hid_params[hid_iface_id].ctx = &usbpads[i];
}
switch (g_eeprom_data.cfg.mode)