i2c_master_bus_wait_all_done() function
Wait for all pending I2C transactions done
Arguments
timeout_ms
Wait timeout, in ms. Specially, -1 means to wait forever.
Return value
- ESP_OK: Flush transactions successfully - ESP_ERR_INVALID_ARG: Flush transactions failed because of invalid argument - ESP_ERR_TIMEOUT: Flush transactions failed because of timeout - ESP_FAIL: Flush transactions failed because of other error