mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 06:37:36 +08:00
Add David Hewson's corrections to the LPC214x USB device driver; Add LPC214x configuration to test the USB composite device
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4359 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -373,6 +373,9 @@ static int dumptrace(void)
|
||||
static int open_serial(void)
|
||||
{
|
||||
int errcode;
|
||||
#ifdef CONFIG_USBDEV_TRACE
|
||||
int ret;
|
||||
#endif
|
||||
|
||||
/* Open the USB serial device for writing (blocking) */
|
||||
|
||||
@@ -402,13 +405,15 @@ static int open_serial(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* If USB tracing is enabled, then dump all collected trace data to stdout */
|
||||
/* If USB tracing is enabled, then dump all collected trace data to
|
||||
* stdout.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_USBDEV_TRACE
|
||||
ret = dumptrace();
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user