diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-01 15:08:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-01 15:08:18 +0000 |
commit | 0b0417e93ff7d0ffa1e17fcefb8906ebbd41bd11 (patch) | |
tree | 437759c826057f0d8ecbb2af94f5666df6802e28 /nuttx/drivers/usbhost/usbhost_storage.c | |
parent | 9bdb91ec537f8a7889a816cf989e6d91054effe5 (diff) | |
download | px4-nuttx-0b0417e93ff7d0ffa1e17fcefb8906ebbd41bd11.tar.gz px4-nuttx-0b0417e93ff7d0ffa1e17fcefb8906ebbd41bd11.tar.bz2 px4-nuttx-0b0417e93ff7d0ffa1e17fcefb8906ebbd41bd11.zip |
Misc debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3227 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_storage.c')
-rw-r--r-- | nuttx/drivers/usbhost/usbhost_storage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_storage.c b/nuttx/drivers/usbhost/usbhost_storage.c index 89b969b30..c544d8dcc 100644 --- a/nuttx/drivers/usbhost/usbhost_storage.c +++ b/nuttx/drivers/usbhost/usbhost_storage.c @@ -1384,7 +1384,10 @@ static int usbhost_connect(FAR struct usbhost_class_s *class, priv->bulkout.addr = epdesc->addr & USB_EP_ADDR_NUMBER_MASK; priv->bulkout.in = false; + priv->bulkout.funcaddr = 1; priv->bulkout.mxpacketsize = usbhost_getle16(epdesc->mxpacketsize); + uvdbg("Bulk OUT EP addr:%d mxpacketsize:%d\n", + priv->bulkout.addr, priv->bulkout.mxpacketsize); } else { @@ -1402,7 +1405,10 @@ static int usbhost_connect(FAR struct usbhost_class_s *class, priv->bulkin.addr = epdesc->addr & USB_EP_ADDR_NUMBER_MASK; priv->bulkin.in = true; + priv->bulkin.funcaddr = 1; priv->bulkin.mxpacketsize = usbhost_getle16(epdesc->mxpacketsize); + uvdbg("Bulk IN EP addr:%d mxpacketsize:%d\n", + priv->bulkin.addr, priv->bulkin.mxpacketsize); } } } |