Skip to content

Commit d749750

Browse files
ydamigosmmahadevan108
authored andcommitted
i2c_smartbond: Don't set STOP flag to last message
Setting STOP flag to last message it's done by z_impl_i2c_transfer(). Signed-off-by: Ioannis Damigos <[email protected]>
1 parent f54a97c commit d749750

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/i2c/i2c_smartbond.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ static inline int i2c_smartbond_set_msg_flags(struct i2c_msg *msgs, uint8_t num_
247247
if (current->flags & I2C_MSG_STOP) {
248248
return -EINVAL;
249249
}
250-
} else {
251-
current->flags |= I2C_MSG_STOP;
252250
}
253251
current++;
254252
}

0 commit comments

Comments
 (0)