110,536
社区成员
发帖
与我相关
我的任务
分享
private void COM_Port_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
byte bt = (byte)COM_Port.ReadByte();
if (bt == 0x5c)
b = true;
if (b == true)
{
if (j >= 288)
{
b = false;
Thread trd = new Thread(new ThreadStart(this.Recve));
trd.IsBackground = true;
trd.Start();
}
else
{
Recv_Buff[j] = bt;
j++;
}
}
}