Skip to content

Commit 182eef8

Browse files
SuGliderCopilot
andauthored
feat(rmt): improve code clarity
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8346673 commit 182eef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-rmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static bool _rmtWrite(int pin, rmt_data_t *data, size_t num_rmt_symbols, bool bl
343343
bus->rmt_ch_is_looping = false;
344344
} else { // new writing | looping request
345345
// looping | Writing over a previous looping state is valid
346-
if (loop) {
346+
if (loop > 0) {
347347
transmit_cfg.loop_count = (loop == 1) ? -1 : loop;
348348
// keeps RMT_FLAG_TX_DONE set - it never changes
349349
} else {

0 commit comments

Comments
 (0)