Skip to content

Commit d73473b

Browse files
committed
fix build on rp2040
1 parent 72cceaf commit d73473b

File tree

1 file changed

+2
-2
lines changed
  • ports/raspberrypi/common-hal/usb_host

1 file changed

+2
-2
lines changed

ports/raspberrypi/common-hal/usb_host/Port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ usb_host_port_obj_t *common_hal_usb_host_port_construct(const mcu_pin_obj_t *dp,
127127
assert_pin_free(dp);
128128
assert_pin_free(dm);
129129

130-
#if PICO_PIO_VERSION > 0
131-
uint32_t used_gpio_ranges = 0;
130+
#if PICO_PIO_VERSION == 0
131+
uint32_t required_gpio_ranges = 0;
132132
#else
133133
uint gpio_base = dm->number;
134134
uint gpio_count = 2;

0 commit comments

Comments
 (0)