mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 18:10:57 +02:00
Merge branch 'fix/rmt_simple_encoder_done_with_mem_full' into 'master'
fix(rmt): fix the state of simple encoder with mem full Closes IDFGH-16195 See merge request espressif/esp-idf!41070
This commit is contained in:
@@ -150,7 +150,8 @@ static size_t rmt_encode_simple(rmt_encoder_t *encoder, rmt_channel_handle_t cha
|
|||||||
// reset internal index if encoding session has finished
|
// reset internal index if encoding session has finished
|
||||||
simple_encoder->last_symbol_index = 0;
|
simple_encoder->last_symbol_index = 0;
|
||||||
state |= RMT_ENCODING_COMPLETE;
|
state |= RMT_ENCODING_COMPLETE;
|
||||||
} else {
|
}
|
||||||
|
if (symbol_off >= tx_chan->mem_end) {
|
||||||
// no more free memory, the caller should yield
|
// no more free memory, the caller should yield
|
||||||
state |= RMT_ENCODING_MEM_FULL;
|
state |= RMT_ENCODING_MEM_FULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user