Skip to content

Commit 9915feb

Browse files
SuGliderCopilot
andauthored
fix(rmt): buffer size for log message
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a92d64f commit 9915feb

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[16]; // placeholder for up to maximum uint32_t value (4294967295) = 10 digits + " times" + null terminator (16 bytes)
313+
char buf[17]; // placeholder for up to maximum uint32_t value (4294967295) = 10 digits + " times" (6 chars) + null terminator (17 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)