XBee API mode library 1.0
Diff: Dump.cpp
- Revision:
- 3:48f7780963e2
- Parent:
- 0:ea8459db49ef
--- a/Dump.cpp Fri Nov 25 05:11:51 2011 +0000 +++ b/Dump.cpp Thu Apr 12 10:20:17 2012 +0000 @@ -21,7 +21,6 @@ */ #include "XBee.h" -#include "macros.h" #include <ctype.h> void XBee::dump() { @@ -132,16 +131,17 @@ } } -void XBee::dump(char* data, int length) { +void XBee::dump(const char* data, int length) { for (int i = 0; i < length; i++) mon.printf("%02X", data[i]); mon.printf(" | "); for (int i = 0; i < length; i++) mon.printf("%c", isprint(data[i]) ? data[i] : '.'); mon.printf("\n"); } -void XBee::dumpIOSample(char* data, int length) { +void XBee::dumpIOSample(const char* data, int length) { if (length > 0) { IOSample sample(data); - sample.print(mon); + //sample.print(mon); + mon.printf(sample); } } \ No newline at end of file