提交 e7d2c187 编写于 作者: M me-no-dev

Do not delete printf buffer if not required

上级 01961ef5
......@@ -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;
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册