From 5913170b6ba08c87f63282577b32df0e91c43967 Mon Sep 17 00:00:00 2001 From: Eugene Krashtan Date: Thu, 28 Mar 2019 18:27:57 +0200 Subject: [PATCH] stm32f0: minor i2c bugfix (#1461) Signed-off-by: Eugene Krashtan --- src/stm32f0/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**