Skip to content

Commit fb5c2b3

Browse files
Remove unneeded line
1 parent 179a4d8 commit fb5c2b3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

targets/TARGET_STM/i2c_api.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,9 +1119,6 @@ int i2c_byte_write(i2c_t *obj, int data)
11191119

11201120
if (obj_s->state == STM_I2C_PENDING_START)
11211121
{
1122-
// Clear Acknowledge Failure flag in case it was set from a previous operation
1123-
__HAL_I2C_CLEAR_FLAG(handle, I2C_FLAG_AF);
1124-
11251122
//* First byte after the start is the address */
11261123
tmpreg |= (uint32_t)((uint32_t)data & I2C_CR2_SADD);
11271124
if (data & 0x01) {

0 commit comments

Comments
 (0)