叠加读取串口

This commit is contained in:
zhengxuan.zhang
2022-11-25 15:16:50 +08:00
parent b94d85b393
commit d73ac43da5
8 changed files with 138 additions and 238 deletions
+2 -2
View File
@@ -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++)
{