Skip to content

Commit 25a1864

Browse files
Fix wording
1 parent cdceaf2 commit 25a1864

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

targets/TARGET_STM/i2c_api.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,9 +1512,8 @@ void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c)
15121512
uint32_t event_code = 0;
15131513

15141514
#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
1515+
if(obj_s->slave_rx_transfer_in_progress && handle->ErrorCode == HAL_I2C_ERROR_AF) {
1516+
// We get here if the master ended a write operation after fewer than expected
15181517
// bytes. Just mark the slave transfer as done and return.
15191518
obj_s->slave_rx_transfer_in_progress = 0;
15201519
return;

0 commit comments

Comments
 (0)