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 Elmo-Terminal by
Revision 6:453b018a9ba0, committed 2015-10-01
- Comitter:
- WGorniak
- Date:
- Thu Oct 01 13:13:08 2015 +0000
- Parent:
- 5:f47aa82f7a96
- Child:
- 7:57eab0d92bce
- Commit message:
- removed sstream from radiocontext
Changed in this revision
| RadioContex.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RadioContex.cpp Thu Oct 01 12:52:17 2015 +0000
+++ b/RadioContex.cpp Thu Oct 01 13:13:08 2015 +0000
@@ -3,7 +3,6 @@
#include "RadioContex.h"
#include "Settings.h"
#include "dbg.h"
-#include <sstream>
/* Set this flag to '1' to display debug messages on the console */
@@ -121,12 +120,13 @@
return true;
}
+extern std::string to_string(const int32_t val);
bool RadioContex::Send(std::string arg)
{
- stringstream ss;
- ss <<" "<< sendCntr;
- arg.append(ss.str());
+ std::string ss(" ");
+ ss.append(to_string(sendCntr));
+ arg.append(ss);
const uint8_t* msg = (const unsigned char *)(arg.c_str());
uint16_t msgSize = static_cast<uint16_t>(arg.size());
