Skip to content

Commit

Permalink
Fix a crash when stopping an RMT receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsg committed Feb 8, 2023
1 parent cf8e0e2 commit 89c2df4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/modules/rmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ static void handle_receive(void *param) {
vRingbufferReturnItem(rb, (void *) items);
}
}
rmt_rx_stop(p->channel);

p->dont_call = true;
task_post_high(cb_task_id, (task_param_t) p);
Expand Down

0 comments on commit 89c2df4

Please sign in to comment.