FF1705 support added
Dependencies: libxDot-dev-mbed5-deprecated ISL29011
Fork of Dot-Examples by
Dot-Examples rev. 31:7ec180e84cb6 have been tested with xdot-library 3.0.0-19-gb6c0ba2 and mbed-os-5.6.2
Diff: examples/inc/RadioEvent.h
- Revision:
- 21:09d05faf0e13
- Parent:
- 14:19fae4509473
--- a/examples/inc/RadioEvent.h Tue May 16 10:47:10 2017 -0500
+++ b/examples/inc/RadioEvent.h Fri Jun 09 08:31:21 2017 -0500
@@ -63,12 +63,9 @@
logDebug("Rx %d bytes", info->RxBufferSize);
if (info->RxBufferSize > 0) {
- // print RX data as hexadecimal
- //printf("Rx data: %s\r\n", mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str());
-
- // print RX data as string
+ // print RX data as string and hexadecimal
std::string rx((const char*)info->RxBuffer, info->RxBufferSize);
- printf("Rx data: %s\r\n", rx.c_str());
+ printf("Rx data: %s [%s]\r\n", rx.c_str(), mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str());
}
}
}
