From d54fb011365dfd6835099d29d2881d1c24b586e9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 28 Oct 2008 17:20:37 +0000 Subject: [PATCH] Fix bad trace data storage git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1094 42af7a65-404d-4744-a932-0658087f49c3 --- drivers/usbdev/usbdev_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbdev/usbdev_trace.c b/drivers/usbdev/usbdev_trace.c index d55828183f..131843c4b1 100644 --- a/drivers/usbdev/usbdev_trace.c +++ b/drivers/usbdev/usbdev_trace.c @@ -146,7 +146,7 @@ void usbtrace(uint16 event, uint16 value) /* Yes... save the new trace data at the head */ g_trace[g_head].event = event; - g_trace[g_tail].event = value; + g_trace[g_head].value = value; /* Increment the head and (probably) the tail index */