diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-02 20:49:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-02 20:49:23 +0000 |
commit | a1128ded94a01c3fa57a39fd7eb13cbde58e60f8 (patch) | |
tree | d1dba34cb3d73e64a77c921bcd1c9e8fd448457c /nuttx | |
parent | 91ba5b53866ad6aa4e79edbb3fdfb784c198601b (diff) | |
download | px4-nuttx-a1128ded94a01c3fa57a39fd7eb13cbde58e60f8.tar.gz px4-nuttx-a1128ded94a01c3fa57a39fd7eb13cbde58e60f8.tar.bz2 px4-nuttx-a1128ded94a01c3fa57a39fd7eb13cbde58e60f8.zip |
Fix EP configure switch value
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2213 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_usbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_usbdev.c b/nuttx/arch/arm/src/stm32/stm32_usbdev.c index 38f30cb30..4ac47358a 100644 --- a/nuttx/arch/arm/src/stm32/stm32_usbdev.c +++ b/nuttx/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; |