Do not delete printf buffer if not required
This commit is contained in:
parent
01961ef5c6
commit
e7d2c18742
@ -60,7 +60,9 @@ size_t Print::printf(const char *format, ...)
|
||||
len = vsnprintf(temp, len+1, format, arg);
|
||||
write((uint8_t*)temp, len);
|
||||
va_end(arg);
|
||||
delete[] temp;
|
||||
if(len > 64){
|
||||
delete[] temp;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user