aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f0/i2c.c
diff options
context:
space:
mode:
authorEugene Krashtan <eug.krashtan@gmail.com>2019-03-28 18:27:57 +0200
committerKevinOConnor <kevin@koconnor.net>2019-03-28 12:27:57 -0400
commit5913170b6ba08c87f63282577b32df0e91c43967 (patch)
treebf5553490e5a07b4da9b85bec84861288fa551d0 /src/stm32f0/i2c.c
parentc7330e07a4701a64fd0624f0dfd017f83fa8eb44 (diff)
downloadkutter-5913170b6ba08c87f63282577b32df0e91c43967.tar.gz
kutter-5913170b6ba08c87f63282577b32df0e91c43967.tar.xz
kutter-5913170b6ba08c87f63282577b32df0e91c43967.zip
stm32f0: minor i2c bugfix (#1461)
Signed-off-by: Eugene Krashtan <eug.krashtan@gmail.com>
Diffstat (limited to 'src/stm32f0/i2c.c')
-rw-r--r--src/stm32f0/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32f0/i2c.c b/src/stm32f0/i2c.c
index f47cf693..55542125 100644
--- a/src/stm32f0/i2c.c
+++ b/src/stm32f0/i2c.c
@@ -77,8 +77,8 @@ void i2c_read(struct i2c_config config, uint8_t reg_len, uint8_t *reg
if (HAL_I2C_GetError(&hi2c1) != HAL_I2C_ERROR_AF) {
shutdown("Buffer error");
}
+ i2c_to_check(timeout);
}
- i2c_to_check(timeout);
}
/**