Kyle Lemons
/
XBeeLib
Diff: XBee.hpp
- Revision:
- 2:2a826741387f
- Parent:
- 1:eefaa22e4b2c
--- 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