Do not delete printf buffer if not required

This commit is contained in:
me-no-dev 2016-10-10 19:29:25 +03:00
parent 01961ef5c6
commit e7d2c18742

View File

@ -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;
}
/*