We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10064bb commit 0d46b3dCopy full SHA for 0d46b3d
1 file changed
cores/nRF5/Print.cpp
@@ -23,14 +23,8 @@
23
#include <math.h>
24
#include "Arduino.h"
25
#include "libc/printf/printf.h"
26
-
27
#include "Print.h"
28
29
-extern "C" void streamOutput(char c, void* arg)
30
-{
31
- (static_cast<Print *>(arg))->write(c);
32
-}
33
34
// Public Methods //////////////////////////////////////////////////////////////
35
36
/* default implementation: may be overridden */
@@ -197,7 +191,7 @@ int Print::printf(const char* format, ...)
197
191
{
198
192
va_list va;
199
193
va_start(va, format);
200
- int ret = vfctprintf(&streamOutput, this, format, va);
194
+ int ret = vprintf(format, va);
201
195
va_end(va);
202
196
return ret;
203
}
0 commit comments