Still need to enable trace -- event when trace not enabled

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2220 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-11-04 14:55:24 +00:00
parent b7511eacdb
commit 200a91f822
1 changed files with 8 additions and 6 deletions

View File

@ -232,16 +232,18 @@ int user_start(int argc, char *argv[])
}
message("user_start: Successfully registered the serial driver\n");
#ifdef CONFIG_USBDEV_TRACE
#if CONFIG_USBDEV_TRACE_INITIALIDSET != 0
/* If USB tracing is enabled, then dump all collected trace data to stdout */
#if CONFIG_USBDEV_TRACE && CONFIG_USBDEV_TRACE_INITIALIDSET != 0
/* If USB tracing is enabled and tracing of initial USB events is specified,
* then dump all collected trace data to stdout
*/
sleep(5);
dumptrace();
#else
#endif
/* Then, in any event, configure trace data collection as configured */
usbtrace_enable(TRACE_BITSET);
#endif
#endif
/* Open the USB serial device for writing (blocking) */