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: PhoneAppIO.h
- 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
