From 8e7d00b9a887fcd31578cfb79ace51d0e7166ac6 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Fri, 9 Dec 2016 18:07:59 +0200 Subject: [PATCH] i2c revert to old fifo write --- cores/esp32/esp32-hal-i2c.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cores/esp32/esp32-hal-i2c.c b/cores/esp32/esp32-hal-i2c.c index 8fbb0b27..347fd80d 100644 --- a/cores/esp32/esp32-hal-i2c.c +++ b/cores/esp32/esp32-hal-i2c.c @@ -172,13 +172,9 @@ i2c_err_t i2cWrite(i2c_t * i2c, uint16_t address, bool addr_10bit, uint8_t * dat } } i = 0; - uint32_t fifotail = 0; while(idev->fifo_st.tx_fifo_end_addr; i++; i2c->dev->fifo_data.data = data[index++]; - // Wait for FIFO to update - while(i2c->dev->fifo_st.tx_fifo_end_addr == fifotail) {}; } i2cSetCmd(i2c, 1, I2C_CMD_WRITE, willSend, false, false, true); dataLen -= willSend;