Skip to content

Commit 15620cb

Browse files
committed
Correctly deinit USB devices
1 parent cd9e6c0 commit 15620cb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

ports/raspberrypi/boards/adafruit_fruit_jam/mpconfigboard.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ CHIP_PACKAGE = B
88
CHIP_FAMILY = rp2
99

1010
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"
11-
12-
# CIRCUITPY_DISPLAY_FONT = $(TOP)/tools/fonts/unifont-16.0.02-all.bdf
13-
# CIRCUITPY_FONT_EXTRA_CHARACTERS = "🖮🖱️"

shared-bindings/usb/core/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static mp_obj_t _next_device(usb_core_devices_obj_t *iter) {
8989

9090
// We passed the filters. Now make a properly allocated object to
9191
// return to the user.
92-
usb_core_device_obj_t *self = mp_obj_malloc(usb_core_device_obj_t, &usb_core_device_type);
92+
usb_core_device_obj_t *self = mp_obj_malloc_with_finaliser(usb_core_device_obj_t, &usb_core_device_type);
9393

9494
common_hal_usb_core_device_construct(self, i);
9595
iter->next_index = i + 1;

0 commit comments

Comments
 (0)