Bug fixes:
- Implement changes from CoreBuffer - Do not update BufLen in WriteToFD()
This commit is contained in:
10
PortCore.cpp
10
PortCore.cpp
@@ -321,6 +321,9 @@ bool CPortCore::ProcessBuffer( bool Force )
|
||||
|
||||
// Write buffer to Port
|
||||
Buffer->WriteToFD( OutputHandle, Len );
|
||||
|
||||
// Clear processed bytes from buffer
|
||||
Buffer->Clear( Len );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -328,15 +331,16 @@ bool CPortCore::ProcessBuffer( bool Force )
|
||||
while (Buffer->FindChar( '\n', Pos ))
|
||||
{
|
||||
// Show Packet
|
||||
Len = Buffer->Peek( &Data, Pos+1 );
|
||||
Len = Buffer->Peek( &Data, 0, Pos+1 );
|
||||
ShowOutput( "Port In", OUT_NORMAL, Data, Len );
|
||||
|
||||
// Write buffer to Port
|
||||
Buffer->WriteToFD( OutputHandle, Len );
|
||||
|
||||
// Clear processed bytes from buffer
|
||||
Buffer->Clear( Len );
|
||||
}
|
||||
}
|
||||
// Clear processed bytes from buffer
|
||||
Buffer->Clear( Len );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user