From 920d35b5d01d001240c7e3e72ea7825be3736de1 Mon Sep 17 00:00:00 2001 From: lenhart Date: Sat, 6 Apr 2019 21:30:10 +0200 Subject: [PATCH] Update i2c documentation Description for i2c_slave_read_buffer had leftover from copying from write fct. data pointer description described the wrong way (writing into internal buffer) Closes https://github.com/espressif/esp-idf/pull/3268 --- components/driver/include/driver/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/driver/include/driver/i2c.h b/components/driver/include/driver/i2c.h index feb1d78bd6..0bd0e2aaec 100644 --- a/components/driver/include/driver/i2c.h +++ b/components/driver/include/driver/i2c.h @@ -384,7 +384,7 @@ int i2c_slave_write_buffer(i2c_port_t i2c_num, uint8_t* data, int size, TickType * Only call this function in I2C slave mode * * @param i2c_num I2C port number - * @param data data pointer to write into internal buffer + * @param data data pointer to accept data from internal buffer * @param max_size Maximum data size to read * @param ticks_to_wait Maximum waiting ticks * -- 2.40.0