I2C. Minor code improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3564 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
2db3c769f1
commit
80043ff2a0
|
@ -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); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue