uint8_t ReceData_Handle(void)
{
uint8_t rret = 0;
frame_head_data *p;
p = (frame_head_data *) Real_Data;
printf("%x\r\n",p->cmd);
printf("%x\r\n",Real_Data[19]);
//while(1);
if(p->cmd != CMD_REPEAT)
{
System_param.date_time[0] = Real_Data[11];
System_param.date_time[1] = Real_Data[12];
System_param.date_time[2] = Real_Data[13];
System_param.date_time[3] = Real_Data[14];
System_param.date_time[4] = Real_Data[15];
System_param.date_time[5] = Real_Data[16];
ChangeTime = 1;
if(Real_Data[19] == 0x00)
{
rret = 0;
printf("\r\n工作正常\r\n");
}
}
else
{
rret = 0;
printf("%x\r\n",rret);
}
以上满足这个else if( p->cmd == CMD_REPORTCONFIG)分支时候,为什么打印输出不是0,而是长整形的数据0x200000ab? |