mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 18:10:57 +02:00
fix(rmt): fix the state of the simple encoder with mem full
Closes https://github.com/espressif/esp-idf/issues/17244
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
|
||||
simple_encoder->last_symbol_index = 0;
|
||||
state |= RMT_ENCODING_COMPLETE;
|
||||
} else {
|
||||
}
|
||||
if (symbol_off >= tx_chan->mem_end) {
|
||||
// no more free memory, the caller should yield
|
||||
state |= RMT_ENCODING_MEM_FULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user