diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-04 14:55:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-04 14:55:24 +0000 |
commit | 0128ca6d623d5539c7e1ef87997a794674165149 (patch) | |
tree | 0d4f93fbaa4a7d7b90d00162ef64796bbc1265d1 /nuttx/examples/usbserial | |
parent | df03104253abf029febabecd177ef170dbc84cf8 (diff) | |
download | px4-nuttx-0128ca6d623d5539c7e1ef87997a794674165149.tar.gz px4-nuttx-0128ca6d623d5539c7e1ef87997a794674165149.tar.bz2 px4-nuttx-0128ca6d623d5539c7e1ef87997a794674165149.zip |
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
Diffstat (limited to 'nuttx/examples/usbserial')
-rw-r--r-- | nuttx/examples/usbserial/main.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/examples/usbserial/main.c b/nuttx/examples/usbserial/main.c index 192212a3a..38f6493f4 100644 --- a/nuttx/examples/usbserial/main.c +++ b/nuttx/examples/usbserial/main.c @@ -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 |