判断\r\n结束标准

ucPrev==0x0D&&ucCur==0x0A

\r\n

uint8_t ucPrev =0,ucCur = 0;
uint32_t recvlen = 0;
for (; uiLen > 0; uiLen--){
ucCur = UARTRecvByte();
recvlen++;
*pucData++ = ucCur;
if(ucPrev==0x0D&&ucCur==0x0A)
{
break;
}
ucPrev = ucCur;
}

//判断是否\r\n 结束标准

上一篇:Spring学习-01


下一篇:Azure CosmosDB (9) Unique Key Constraints