Skip to content
Permalink
Browse files

Fix data logging reading before the start of a buffer.

  • Loading branch information...
Ignacio Jaureguiberry
Ignacio Jaureguiberry committed Oct 18, 2017
1 parent dbcfbba commit 6dbbf6b4c20dec99eb9d534c5cd7af73390310c4
Showing with 2 additions and 1 deletion.
  1. +2 −1 cpp/src/platform/Stream.cpp
@@ -151,8 +151,9 @@ bool Stream::Put

memcpy( &m_buffer[m_head], _buffer, block1 );
memcpy( m_buffer, &_buffer[block1], block2 );
uint8 * logpos = m_buffer + m_head;
m_head = block2;
LogData( m_buffer + m_head - block1, block1, " Read (controller->buffer): ");
LogData( logpos, block1, " Read (controller->buffer): ");
LogData( m_buffer, block2, " Read (controller->buffer): ");
}
else

0 comments on commit 6dbbf6b

Please sign in to comment.
You can’t perform that action at this time.