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.
1 parent cdceaf2 commit 25a1864Copy full SHA for 25a1864
targets/TARGET_STM/i2c_api.c
@@ -1512,9 +1512,8 @@ void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c)
1512
uint32_t event_code = 0;
1513
1514
#if DEVICE_I2CSLAVE
1515
- if(obj_s->slave_rx_transfer_in_progress && handle->ErrorCode == HAL_I2C_ERROR_AF)
1516
- {
1517
- // We get here if the master NACKed a write operation after fewer than expected
+ if(obj_s->slave_rx_transfer_in_progress && handle->ErrorCode == HAL_I2C_ERROR_AF) {
+ // We get here if the master ended a write operation after fewer than expected
1518
// bytes. Just mark the slave transfer as done and return.
1519
obj_s->slave_rx_transfer_in_progress = 0;
1520
return;
0 commit comments