|
爱科技、爱创意、爱折腾、爱极致,我们都是技术控
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 yyou58 于 2021-9-12 16:28 编辑
如何在以下代码添加结束符,串口每次发送一个数据,并一起发送 0xFF 0xFF 0xFF
if(re_buf[13]>99)
{
SendData(tt/100 + 0x30);
SendData(tt/10%10 + 0x30);
SendData(tt%10 + 0x30);
}
else if(re_buf[13]>9)
{
SendData(tt/10 + 0x30);
SendData(tt%10 + 0x30);
}
else
{
SendData(tt%10 + 0x30);
}
re_count = 0;
}
}
}
|
|