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);
|
len = vsnprintf(temp, len+1, format, arg);
|
||||||
write((uint8_t*)temp, len);
|
write((uint8_t*)temp, len);
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
if(len > 64){
|
||||||
delete[] temp;
|
delete[] temp;
|
||||||
|
}
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user