class c
Dependencies: libmDot-mbed5 picojson ISL29011
Diff: examples/inc/RadioEvent.h
- Revision:
- 21:09d05faf0e13
- Parent:
- 14:19fae4509473
diff -r 9ea0f3385ab3 -r 09d05faf0e13 examples/inc/RadioEvent.h --- 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()); } } }