Skip to content

Commit d4b31b2

Browse files
authored
fix(rmt): increase buffer size for loop count loop log msg
1 parent c9c00f8 commit d4b31b2

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
@@ -310,7 +310,7 @@ static bool _rmtWrite(int pin, rmt_data_t *data, size_t num_rmt_symbols, bool bl
310310
// loop == 1: infinite looping
311311
// loop > 1: transmit the data 'loop' times
312312
{
313-
char buf[12]; // placeholder up to 5 + 1 + 5 + 1 bytes
313+
char buf[16]; // place holder for up to maximum uint32_t value (4294967295) = 10 digits + " times" + null terminator (16 bytes)
314314
snprintf(buf, sizeof(buf), "%lu times", loop);
315315
log_v(
316316
"GPIO: %d - Currently in Loop Mode: [%s] | Loop Request: [%s], LoopCancel: [%s]", pin,

0 commit comments

Comments
 (0)