Skip to content

Commit d1434bd

Browse files
SuGliderCopilot
andauthored
feat(rmt): improve commentaries
Co-authored-by: Copilot <[email protected]>
1 parent 7fffb38 commit d1434bd

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
@@ -428,7 +428,7 @@ bool rmtWriteLooping(int pin, rmt_data_t *data, size_t num_rmt_symbols) {
428428
}
429429

430430
// Same as rmtWriteLooping(...) but it transmits the data a fixed number of times ("loop_count").
431-
// loop_count == 0 is invalid (no transmission); loop_count >= 1 means transmit that many times.
431+
// loop_count == 0 is invalid (no transmission); loop_count == 1 transmits once (no looping); loop_count > 1 transmits the data repeatedly (looping).
432432
bool rmtWriteRepeated(int pin, rmt_data_t *data, size_t num_rmt_symbols, uint32_t loop_count) {
433433
if (loop_count == 0) {
434434
log_e("RMT TX GPIO %d : Invalid loop_count (%u). Must be at least 1.", pin, loop_count);

0 commit comments

Comments
 (0)