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.
Revision 2:2a826741387f, committed 2010-12-01
- Comitter:
- etherealflaim
- Date:
- Wed Dec 01 21:41:52 2010 +0000
- Parent:
- 1:eefaa22e4b2c
- Commit message:
Changed in this revision
| XBee.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/XBee.hpp Wed Dec 01 21:14:23 2010 +0000
+++ b/XBee.hpp Wed Dec 01 21:41:52 2010 +0000
@@ -123,17 +123,6 @@
dest_idx == string::npos ||
data_idx == string::npos) return false;
- #if _XBEE_DEBUG > 1
- Serial usb(USBTX,USBRX);
- usb.printf("-- UNPACK:\r\n");
- usb.printf("-- FULL = %s\r\n", m_data.c_str());
- usb.printf("-- INDICES = src %d / dst %d / dat %d\r\n", source_idx, dest_idx, data_idx);
- usb.printf("-- SPLIT = %s / %s / %s\r\n",
- m_data.substr(source_idx, dest_idx - source_idx - 1).c_str(),
- m_data.substr(dest_idx, data_idx - dest_idx - 1).c_str(),
- m_data.substr(data_idx));
- #endif
-
m_source = m_data.substr(source_idx, dest_idx - source_idx - 1);
m_dest = m_data.substr(dest_idx, data_idx - dest_idx - 1);
m_data = m_data.substr(data_idx);
@@ -156,7 +145,7 @@
out.printf("[%s] -> [%s] : [", m_source.c_str(), m_dest.c_str());
for (int i = 0; i < m_data_len; ++i)
{
- char c = m_dest[i];
+ char c = m_data[i];
if (isprint(c))
out.putc(c);
else