Closed as not planned
Description
I noticed Serial does not support Serial.printf
. This is what I have done so far. could be wrong Please correct me if I am wrong here.
in Print.h
size_t printf(const char *format, ...);
in Print.cpp
#include <stdarg.h> // Required for va_list, va_start, va_end
.....
size_t Print::printf(const char *format, ...) {
va_list arg;
va_start(arg, format);
size_t ret = vprintf(format, arg);
va_end(arg);
return ret;
}