mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
fix(i2c_slave): Fix the wrong semaphore take in isr
This commit is contained in:
parent
bcd80c92f3
commit
34e48d8517
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user