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:
Chen Jichang
2025-08-06 18:18:27 +08:00
parent 949296e4bd
commit 579a744fb3

View File

@@ -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;
}