We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea71e9 commit fc8f707Copy full SHA for fc8f707
cores/arduino/Print.cpp
@@ -263,14 +263,18 @@ int Print::printf(const char *format, ...)
263
{
264
va_list ap;
265
va_start(ap, format);
266
- return vdprintf((int)this, format, ap);
+ int retval = vdprintf((int)this, format, ap);
267
+ va_end(ap);
268
+ return retval;
269
}
270
271
int Print::printf(const __FlashStringHelper *format, ...)
272
273
274
- return vdprintf((int)this, (const char *)format, ap);
275
+ int retval = vdprintf((int)this, (const char *)format, ap);
276
277
278
279
280
// Private Methods /////////////////////////////////////////////////////////////
@@ -441,4 +445,4 @@ size_t Print::printFloat(double number, uint8_t digits)
441
445
442
446
443
447
return n;
444
-}
448
+}
0 commit comments