I2C. Small style improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3719 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
9a5d5cc7f7
commit
b923d10f0e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue