From 84deab693253e6c71c93aa54bb04ba5d777e73da Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 2 Nov 2009 20:49:23 +0000 Subject: [PATCH] Fix EP configure switch value git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2213 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_usbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index 38f30cb30a..4ac47358af 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -2598,7 +2598,7 @@ static int stm32_epconfigure(struct usbdev_ep_s *ep, /* Set the requested type */ - switch (desc->type) + switch (desc->attr & USB_EP_ATTR_XFERTYPE_MASK) { case USB_EP_ATTR_XFER_INT: /* Interrupt endpoint */ setting = USB_EPR_EPTYPE_INTERRUPT;