Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of football_project by
Diff: io/MySerial.cpp
- Revision:
- 4:17b8edf264c3
- Parent:
- 2:fe1566cdb6e7
- Child:
- 5:1b9734e68327
--- a/io/MySerial.cpp Mon Apr 13 17:41:48 2015 +0000
+++ b/io/MySerial.cpp Thu Apr 16 17:10:19 2015 +0000
@@ -10,8 +10,6 @@
#include "MySerial.h"
-#define STRING_STACK_LIMIT 120
-
extern "C"
{
void pin_mode( PinName, PinMode );
@@ -167,10 +165,7 @@
return 0;
}
-// Experimental support for printf in MySerial. No Stream inheritance
-// means we can't call printf() directly, so we use sprintf() instead.
-// We only call malloc() for the sprintf() buffer if the buffer
-// length is above a certain threshold, otherwise we use just the stack.
+
int MySerial::printf( const char *format, ... )
{
va_list arg;
