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.
Dependencies: MaximInterface
Diff: CC3100_transport.cpp
- Revision:
- 2:50d5ecf99275
- Parent:
- 0:33d4e66780c0
- Child:
- 13:6a6225690c2e
--- a/CC3100_transport.cpp Fri Feb 24 11:42:02 2017 -0600
+++ b/CC3100_transport.cpp Mon Feb 27 10:30:31 2017 -0600
@@ -30,7 +30,7 @@
* ownership rights.
*******************************************************************************/
-#include <sstream>
+#include <cstdio>
#include <cstring>
#include <InterruptIn.h>
#include <DigitalOut.h>
@@ -51,9 +51,7 @@
SlFd_t fd = invalidFd;
if (ifName != NULL)
{
- std::string ifNameString(ifName);
- std::istringstream ifNameStream(ifNameString);
- ifNameStream >> fd;
+ std::sscanf(ifName, "%p", &fd);
}
return fd;
}