Merge pull request #5249 from dhalbert/usb_hid-gc-fix

Fix usb_hid_gc_collect()
This commit is contained in:
Dan Halbert 2021-08-27 19:27:55 -04:00 committed by GitHub
commit dd89ff244d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,8 +252,8 @@ void usb_hid_gc_collect(void) {
// Collect all the report buffers for this device. // Collect all the report buffers for this device.
for (size_t id_idx = 0; id_idx < hid_devices[device_idx].num_report_ids; id_idx++) { for (size_t id_idx = 0; id_idx < hid_devices[device_idx].num_report_ids; id_idx++) {
gc_collect_ptr(hid_devices[id_idx].in_report_buffers[id_idx]); gc_collect_ptr(hid_devices[device_idx].in_report_buffers[id_idx]);
gc_collect_ptr(hid_devices[id_idx].out_report_buffers[id_idx]); gc_collect_ptr(hid_devices[device_idx].out_report_buffers[id_idx]);
} }
} }
} }