- uint8_t ReceData_Handle(void)
- {
- uint8_t rret = 0;
- frame_head_data *p;
- p = (frame_head_data *) Real_Data;
- printf("%x
",p->cmd);
- printf("%x
",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("
工作正常
");
-
- }
- }
- else if( p->cmd == CMD_REPORTCONFIG)
- {
- rret = 0;
- printf("%x
",rret);
-
- }
- .....
- }
复制代码
以上满足这个else if( p->cmd == CMD_REPORTCONFIG)分支时候,为什么打印输出不是0,而是长整形的数据0x200000ab?
一周热门 更多>