From 80043ff2a01e97bacf9b2f30833b196e031cb20d Mon Sep 17 00:00:00 2001 From: barthess Date: Wed, 7 Dec 2011 05:44:33 +0000 Subject: [PATCH] I2C. Minor code improvements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3564 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/i2c.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index 18e93119e..1923742c7 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -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); \ }