From 38e862635c713af30ce56f80d72879426c8bdc4a Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 5 Oct 2011 19:02:00 +0000 Subject: [PATCH] Add sim C++ support git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4024 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_i2c.c b/arch/arm/src/stm32/stm32_i2c.c index 1737850ee0..94e9b7b886 100644 --- a/arch/arm/src/stm32/stm32_i2c.c +++ b/arch/arm/src/stm32/stm32_i2c.c @@ -698,7 +698,7 @@ static void stm32_i2c_tracedump(FAR struct stm32_i2c_priv_s *priv) /* Dump all of the buffered trace entries */ - for (i = 0; i < priv->tndx; i++) + for (i = 0; i <= priv->tndx; i++) { lib_rawprintf("%2d. STATUS: %08x COUNT: %3d EVENT: %2d PARM: %08x\n", i, priv->trace[i].status, priv->trace[i].count, @@ -1144,7 +1144,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s * priv) #else priv->intstate = INTSTATE_DONE; #endif - } + } priv->status = status; return OK;