mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
fix(i2c_slave): Fix the wrong semaphore take in isr
This commit is contained in:
@ -104,7 +104,7 @@ IRAM_ATTR static bool i2c_slave_handle_rx_fifo(i2c_slave_dev_t *i2c_slave, uint3
|
||||
i2c_slave->rx_data_count += len;
|
||||
}
|
||||
}
|
||||
xSemaphoreTakeFromISR(i2c_slave->operation_mux, &xTaskWoken);
|
||||
xSemaphoreGiveFromISR(i2c_slave->operation_mux, &xTaskWoken);
|
||||
return xTaskWoken;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user