Skip to content

Commit dd89ff2

Browse files
authored
Merge pull request micropython#5249 from dhalbert/usb_hid-gc-fix
Fix usb_hid_gc_collect()
2 parents 31b9dd4 + 29ae444 commit dd89ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/usb_hid/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ void usb_hid_gc_collect(void) {
252252

253253
// Collect all the report buffers for this device.
254254
for (size_t id_idx = 0; id_idx < hid_devices[device_idx].num_report_ids; id_idx++) {
255-
gc_collect_ptr(hid_devices[id_idx].in_report_buffers[id_idx]);
256-
gc_collect_ptr(hid_devices[id_idx].out_report_buffers[id_idx]);
255+
gc_collect_ptr(hid_devices[device_idx].in_report_buffers[id_idx]);
256+
gc_collect_ptr(hid_devices[device_idx].out_report_buffers[id_idx]);
257257
}
258258
}
259259
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy