mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 04:40:50 +00:00
fix compiler warning
This commit is contained in:
parent
62b3509009
commit
f7655f3abe
@ -44,7 +44,7 @@ size_t RedirectablePrint::vprintf(const char *format, va_list arg)
|
|||||||
static char printBuf[160];
|
static char printBuf[160];
|
||||||
|
|
||||||
va_copy(copy, arg);
|
va_copy(copy, arg);
|
||||||
int len = vsnprintf(printBuf, sizeof(printBuf), format, copy);
|
size_t len = vsnprintf(printBuf, sizeof(printBuf), format, copy);
|
||||||
va_end(copy);
|
va_end(copy);
|
||||||
|
|
||||||
if (len < 0) return 0;
|
if (len < 0) return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user