Skip to content

Commit 8883c30

Browse files
authored
feat(rmt): improved code readness
1 parent a198804 commit 8883c30

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
@@ -436,7 +436,7 @@ bool rmtWriteRepeated(int pin, rmt_data_t *data, size_t num_rmt_symbols, uint32_
436436
}
437437
if (loop_count == 1) {
438438
// send the RMT symbols once using non blocking write, like "looping" it a single time
439-
return rmtWriteAsync(pin, data, num_rmt_symbols);
439+
return _rmtWrite(pin, data, num_rmt_symbols, false /*blocks*/, 0 /*looping*/, 0 /*N/A*/);
440440
} else {
441441
// write the RMT symbols for loop_count times
442442
return _rmtWrite(pin, data, num_rmt_symbols, false /*blocks*/, loop_count /*looping*/, 0 /*N/A*/);

0 commit comments

Comments
 (0)