Skip to content

Commit 8e7d00b

Browse files
committed
i2c revert to old fifo write
1 parent 4e458fd commit 8e7d00b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cores/esp32/esp32-hal-i2c.c

-4
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,9 @@ i2c_err_t i2cWrite(i2c_t * i2c, uint16_t address, bool addr_10bit, uint8_t * dat
172172
}
173173
}
174174
i = 0;
175-
uint32_t fifotail = 0;
176175
while(i<dataSend) {
177-
fifotail = i2c->dev->fifo_st.tx_fifo_end_addr;
178176
i++;
179177
i2c->dev->fifo_data.data = data[index++];
180-
// Wait for FIFO to update
181-
while(i2c->dev->fifo_st.tx_fifo_end_addr == fifotail) {};
182178
}
183179
i2cSetCmd(i2c, 1, I2C_CMD_WRITE, willSend, false, false, true);
184180
dataLen -= willSend;

0 commit comments

Comments
 (0)