diff --git a/cores/esp32/Print.cpp b/cores/esp32/Print.cpp index 9f7b35da..d758478b 100644 --- a/cores/esp32/Print.cpp +++ b/cores/esp32/Print.cpp @@ -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; } /*