Skip to content

Commit e9aa349

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/esp32/esp32-hal-rmt.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ static bool _rmtWrite(int pin, rmt_data_t *data, size_t num_rmt_symbols, bool bl
308308
"GPIO: %d - Currently in Loop Mode: [%s] | Asked to Loop: %s, LoopCancel: %s", pin, bus->rmt_ch_is_looping ? "YES" : "NO", loop ? "YES" : "NO",
309309
loopCancel ? "YES" : "NO"
310310
);
311-
// loop == 1 means infinite loop.
311+
// loop parameter semantics:
312+
// loop == 0: no looping (single transmission)
313+
// loop == 1: infinite looping
314+
// loop > 1: transmit the data 'loop' times
312315
if (loop > 1) {
313316
log_v("GPIO: %d - Loop count: %lu times", pin, loop);
314317
}

0 commit comments

Comments
 (0)