Skip to content
Snippets Groups Projects
Commit 200a91f8 authored by patacongo's avatar patacongo
Browse files

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
parent b7511eac
No related branches found
No related tags found
No related merge requests found
......@@ -232,17 +232,19 @@ 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
usbtrace_enable(TRACE_BITSET);
#endif
#endif
/* Then, in any event, configure trace data collection as configured */
usbtrace_enable(TRACE_BITSET);
/* Open the USB serial device for writing (blocking) */
#ifndef CONFIG_EXAMPLES_USBSERIAL_OUTONLY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment