Skip to content

Commit 3641446

Browse files
authored
feat(rmt): improve commentaries
1 parent e9aa349 commit 3641446

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cores/esp32/esp32-hal-rmt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,9 @@ static bool _rmtWrite(int pin, rmt_data_t *data, size_t num_rmt_symbols, bool bl
356356
log_w("GPIO %d - RMT Transmission failed.", pin);
357357
} else { // transmit OK
358358
if (loop) {
359-
bus->rmt_ch_is_looping = true; // for ever... until a channel canceling or new writing.
360-
// NOTE: even if loop count is finite number
359+
// Even if loop count is finite number, it shall keep looping ... until a channel canceling or new writing.
360+
bus->rmt_ch_is_looping = true;
361+
361362
} else {
362363
if (blocking) {
363364
// wait for transmission confirmation | timeout

0 commit comments

Comments
 (0)