This commit is contained in:
2025-07-08 00:48:25 -04:00
parent db56f5ed91
commit 6a5d0dd7dc
3 changed files with 2 additions and 2 deletions

View File

View File

@@ -1 +1 @@
8efd42efa11369c020d094133a23fc490c0cb991 db56f5ed910bd7042eef71628891d3350e4c3346

View File

@@ -51,7 +51,7 @@ static i2c_port_state_t states[I2C_NUM_MAX];
#define SEMAPHORE_TAKE(port) #define SEMAPHORE_TAKE(port)
#else #else
#define SEMAPHORE_TAKE(port) do { \ #define SEMAPHORE_TAKE(port) do { \
if (!xSemaphoreTake(states[port].lock, pdMS_TO_TICKS(1000))) \ if (!xSemaphoreTake(states[port].lock, pdMS_TO_TICKS(CONFIG_I2CDEV_TIMEOUT))) \
{ \ { \
ESP_LOGE(TAG, "Could not take port mutex %d", port); \ ESP_LOGE(TAG, "Could not take port mutex %d", port); \
return ESP_ERR_TIMEOUT; \ return ESP_ERR_TIMEOUT; \