unsigned char checksum(unsigned char * buf,unsigned char len)
{
unsigned char data = 0;
for(unsigned char i = 0;i < len;i++)
{
data += buf[i];
}
return data;
}
04-28
1万+
10-19
421