Skip to content

Commit 8e23985

Browse files
author
Cruz Monrreal
authored
Merge pull request #6686 from maximmbed/max32620c-fix-i2c
Remove automatic I2C stop after each read
2 parents 38846b2 + 3e7a909 commit 8e23985

File tree

1 file changed

+0
-5
lines changed
  • targets/TARGET_Maxim/TARGET_MAX32620C

1 file changed

+0
-5
lines changed

targets/TARGET_Maxim/TARGET_MAX32620C/i2c_api.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ int i2c_byte_read(i2c_t *obj, int last)
145145
if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_RXDATA_NACK) != E_NO_ERROR) {
146146
goto byte_read_err;
147147
}
148-
149-
// Send the stop condition
150-
if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_STOP) != E_NO_ERROR) {
151-
goto byte_read_err;
152-
}
153148
} else {
154149
if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_RXDATA_COUNT) != E_NO_ERROR) {
155150
goto byte_read_err;

0 commit comments

Comments
 (0)