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: libmDot-mbed5 ISL29011
Diff: examples/inc/RadioEvent.h
- Revision:
- 36:f1053cb17d4f
- Parent:
- 34:f6486829a451
- Child:
- 38:2c027824e046
--- a/examples/inc/RadioEvent.h Thu May 02 09:29:05 2019 -0500
+++ b/examples/inc/RadioEvent.h Thu May 02 13:18:08 2019 -0500
@@ -74,9 +74,13 @@
logDebug("Rx %d bytes", info->RxBufferSize);
if (info->RxBufferSize > 0) {
+#if ACTIVE_EXAMPLE == FOTA_EXAMPLE
+ printf("Rx data: [%s]\r\n", mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str());
+#else
// print RX data as string and hexadecimal
std::string rx((const char*)info->RxBuffer, info->RxBufferSize);
printf("Rx data: %s [%s]\r\n", rx.c_str(), mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str());
+#endif
}
}
}