I2C. Minor code improvements.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3564 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-12-07 05:44:33 +00:00
parent 2db3c769f1
commit 80043ff2a0
1 changed files with 4 additions and 2 deletions

View File

@ -211,8 +211,9 @@ struct I2CSlaveConfig{
((i2cp)->id_slave_config)->id_callback(i2cp, i2cscfg); \
(i2cp)->id_state = I2C_READY; \
} \
else \
else{ \
(i2cp)->id_state = I2C_READY; \
} \
_i2c_wakeup_isr(i2cp); \
}
@ -236,8 +237,9 @@ struct I2CSlaveConfig{
((i2cp)->id_slave_config)->id_err_callback(i2cp, i2cscfg); \
(i2cp)->id_state = I2C_READY; \
} \
else \
else{ \
(i2cp)->id_state = I2C_READY; \
} \
_i2c_wakeup_isr(i2cp); \
}