From 29ae444dc643aa5ff7c38438cf69f972d7f97fa1 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 27 Aug 2021 11:36:56 -0400 Subject: [PATCH] Fix usb_hid_gc_collect() --- shared-module/usb_hid/__init__.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-module/usb_hid/__init__.c b/shared-module/usb_hid/__init__.c index e61d01cc16..efe37662ee 100644 --- a/shared-module/usb_hid/__init__.c +++ b/shared-module/usb_hid/__init__.c @@ -252,8 +252,8 @@ void usb_hid_gc_collect(void) { // 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++) { - gc_collect_ptr(hid_devices[id_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].in_report_buffers[id_idx]); + gc_collect_ptr(hid_devices[device_idx].out_report_buffers[id_idx]); } } }