From b6771b7f83f3f75c320ab4ef8d06cf631c492421 Mon Sep 17 00:00:00 2001 From: Tomas Rezucha Date: Thu, 19 May 2022 12:49:33 +0200 Subject: [PATCH] docs: Fix I2C thread-safety --- components/driver/include/driver/i2c.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/driver/include/driver/i2c.h b/components/driver/include/driver/i2c.h index 99974db424..e8da6df2de 100644 --- a/components/driver/include/driver/i2c.h +++ b/components/driver/include/driver/i2c.h @@ -404,8 +404,7 @@ esp_err_t i2c_master_stop(i2c_cmd_handle_t cmd_handle); /** * @brief Send all the queued commands on the I2C bus, in master mode. * The task will be blocked until all the commands have been sent out. - * The I2C APIs are not thread-safe, if you want to use one I2C port in different tasks, - * you need to take care of the multi-thread issue. + * The I2C port is protected by mutex, so this function is thread-safe. * This function shall only be called in I2C master mode. * * @param i2c_num I2C port number