mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4012 from monkiineko/master
STM32: Correct I2C master error handlingpull/4013/head
commit
d467f7d4bc
|
|
@ -904,7 +904,10 @@ void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c){
|
||||||
|
|
||||||
#if DEVICE_I2CSLAVE
|
#if DEVICE_I2CSLAVE
|
||||||
/* restore slave address */
|
/* restore slave address */
|
||||||
i2c_slave_address(obj, 0, address, 0);
|
if (address != 0) {
|
||||||
|
obj_s->slave = 1;
|
||||||
|
i2c_slave_address(obj, 0, address, 0);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Keep Set event flag */
|
/* Keep Set event flag */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue