From d73473b647d76516d15c7c483951afb5cfd1af81 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 20 Dec 2024 13:23:44 -0600 Subject: [PATCH] fix build on rp2040 --- ports/raspberrypi/common-hal/usb_host/Port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/raspberrypi/common-hal/usb_host/Port.c b/ports/raspberrypi/common-hal/usb_host/Port.c index 22de0a4f9e500..4c79235ca84db 100644 --- a/ports/raspberrypi/common-hal/usb_host/Port.c +++ b/ports/raspberrypi/common-hal/usb_host/Port.c @@ -127,8 +127,8 @@ usb_host_port_obj_t *common_hal_usb_host_port_construct(const mcu_pin_obj_t *dp, assert_pin_free(dp); assert_pin_free(dm); - #if PICO_PIO_VERSION > 0 - uint32_t used_gpio_ranges = 0; + #if PICO_PIO_VERSION == 0 + uint32_t required_gpio_ranges = 0; #else uint gpio_base = dm->number; uint gpio_count = 2;