-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
if (xQueueReceive(p_i2s_obj[i2s_num]->tx->queue, &p_i2s_obj[i2s_num]->tx->curr_ptr, ticks_to_wait) == pdFALSE) { |
When I tried the example code for i2s, the esp8266 would hang. After much gnashing of teeth, I finally found the culprit.
In the subroutine, esp_err_t i2s_write(), the line :
if (xQueueReceive(p_i2s_obj[i2s_num]->tx->queue, &p_i2s_obj[i2s_num]->tx->curr_ptr, ticks_to_wait) == pdFALSE) {
should be :
if (xQueueSend(p_i2s_obj[i2s_num]->tx->queue, &p_i2s_obj[i2s_num]->tx->curr_ptr, ticks_to_wait) == pdFALSE) {
Metadata
Metadata
Assignees
Labels
No labels