We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfedc39 + b7e6c04 commit 8a0c3c7Copy full SHA for 8a0c3c7
targets/TARGET_STM/i2c_api.c
@@ -1175,10 +1175,10 @@ void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c)
1175
/* Get object ptr based on handler ptr */
1176
i2c_t *obj = get_i2c_obj(hi2c);
1177
struct i2c_s *obj_s = I2C_S(obj);
1178
+ I2C_HandleTypeDef *handle = &(obj_s->handle);
1179
uint32_t event_code = 0;
1180
1181
#if DEVICE_I2CSLAVE
- I2C_HandleTypeDef *handle = &(obj_s->handle);
1182
uint32_t address = 0;
1183
/* Store address to handle it after reset */
1184
if (obj_s->slave) {
0 commit comments