Merge branch 'fix/rmt_simple_encoder_done_with_mem_full_v5.4' into 'release/v5.4'

fix(rmt): fix the state of simple encoder with mem full (v5.4)

See merge request espressif/esp-idf!41244
This commit is contained in:
morris
2025-08-18 14:43:53 +08:00

View File

@@ -372,7 +372,8 @@ static size_t IRAM_ATTR rmt_encode_simple(rmt_encoder_t *encoder, rmt_channel_ha
// reset internal index if encoding session has finished
simple_encoder->last_symbol_index = 0;
state |= RMT_ENCODING_COMPLETE;
} else {
}
if (tx_chan->mem_off >= tx_chan->mem_end) {
// no more free memory, the caller should yield
state |= RMT_ENCODING_MEM_FULL;
}