Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
23:26f27c462976
Parent:
19:afcbb425b3cf
Child:
30:c60b0d52b067
--- a/PhoneAppIO.h	Tue Dec 01 16:03:15 2015 +0000
+++ b/PhoneAppIO.h	Mon Dec 14 14:24:10 2015 +0000
@@ -30,7 +30,7 @@
   public:
     PhoneAppIO( BLEDevice &ble, GattAttribute::Handle_t toPhoneHandle,
                                 GattAttribute::Handle_t toConeHandle,
-                                int txBufferSize=1280, int rxBufferSize=256 );
+                                int txBufferSize=500, int rxBufferSize=256 );
 
     /** Destructs a PhoneAppIO object and frees all related resources, including
     * internal buffers.
@@ -65,7 +65,7 @@
         if( len < STRING_STACK_LIMIT )
         {
             char temp[STRING_STACK_LIMIT];
-            vsprintf( temp, format, arg );
+            vsnprintf( temp, sizeof(temp), format, arg );
             puts( temp );
 
         } else