叠加读取串口
This commit is contained in:
@@ -152,7 +152,7 @@ int CMMIO::AddReceived(const char* Buffer, DWORD Bytes)
|
||||
// We are messing with pointers so use the CriticalSection
|
||||
if (bArmed)
|
||||
{
|
||||
// EnterCriticalSection(&m_QueueLock);
|
||||
// EnterCriticalSection(&m_QueueLock);
|
||||
//Allocate a new list and add it in
|
||||
count = pBuffer2 - (&Buffer2[0]);
|
||||
if (m_pReceiveNotify)
|
||||
@@ -215,7 +215,7 @@ void CMMIO::LineReceive(char* s, int nbCharAvail, BOOL ignoreDelimiter /*= FALSE
|
||||
{
|
||||
if (nbCharAvail != -1)
|
||||
{
|
||||
TRACE(_T("LineReceive got %d chars \n"),nbCharAvail);
|
||||
TRACE(_T("LineReceive got %d chars \n"), nbCharAvail);
|
||||
char c;
|
||||
for (int i = 0; i < nbCharAvail; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user