From 13b510ad8e6c76e36cf63ec2931d6cf3f6840114 Mon Sep 17 00:00:00 2001 From: corvus-ossifragus <77814520+corvus-ossifragus@users.noreply.github.com> Date: Fri, 7 May 2021 16:49:48 -0400 Subject: [PATCH] Update hcd_rp2040.c Remove reference to the deprecated "num" and "in" members of struct hw_endpoint which still exist in an assert statement and break DEBUG builds. --- src/portable/raspberrypi/rp2040/hcd_rp2040.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c index 224f6ef2..40d20867 100644 --- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c +++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c @@ -487,7 +487,6 @@ bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet // EP0 out _hw_endpoint_init(ep, dev_addr, 0x00, ep->wMaxPacketSize, 0, 0); assert(ep->configured); - assert(ep->num == 0 && !ep->in); ep->total_len = 8; ep->transfer_size = 8; ep->active = true;