From b923d10f0e377094d8fbb4ac7aa8b6b9f4ac36b2 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 3 Jan 2012 17:08:01 +0000 Subject: [PATCH] I2C. Small style improvements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3719 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/i2c_lld.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c index ec626e329..9a7cf2873 100644 --- a/os/hal/platforms/STM32/i2c_lld.c +++ b/os/hal/platforms/STM32/i2c_lld.c @@ -496,7 +496,9 @@ void i2c_lld_start(I2CDriver *i2cp) { /* If in stopped state then enables the I2C and DMA clocks.*/ if (i2cp->state == I2C_STOP) { + i2c_lld_reset(i2cp); + #if STM32_I2C_USE_I2C1 if (&I2CD1 == i2cp) { bool_t b;