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 mbed
Diff: common.cpp
- Revision:
- 20:cdba71cb5506
- Parent:
- 6:b6bafd0a7013
--- a/common.cpp Mon Aug 15 13:59:17 2016 +0000
+++ b/common.cpp Tue Sep 06 11:33:14 2016 -0500
@@ -31,6 +31,7 @@
*******************************************************************************
*/
+#include <stdio.h>
#include "common.hpp"
const size_t charsPerByte = 2;
@@ -48,7 +49,7 @@
char hexBuf[charsPerByte + 1];
for (size_t i = 0; i < byteArraySize; i++)
{
- std::snprintf(hexBuf, (sizeof(hexBuf) / sizeof(hexBuf[0])), "%2.2X", byteArray[i]);
+ snprintf(hexBuf, (sizeof(hexBuf) / sizeof(hexBuf[0])), "%2.2X", byteArray[i]);
hexString.append(hexBuf, charsPerByte);
}
}
\ No newline at end of file
MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification