Skip to content

Commit

Permalink
add missing IRAM_ATTR to tx_sent_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Nov 29, 2024
1 parent 5327353 commit c662969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/esp-box/src/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ using namespace espp;

static TaskHandle_t play_audio_task_handle_ = NULL;

static bool audio_tx_sent_callback(i2s_chan_handle_t handle, i2s_event_data_t *event,
void *user_ctx) {
static bool IRAM_ATTR audio_tx_sent_callback(i2s_chan_handle_t handle, i2s_event_data_t *event,
void *user_ctx) {
// notify the main task that we're done
vTaskNotifyGiveFromISR(play_audio_task_handle_, NULL);
return true;
Expand Down

0 comments on commit c662969

Please sign in to comment.