diff --git a/modules/referee/referee_UI.c b/modules/referee/referee_UI.c index e474e30..ec436cd 100644 --- a/modules/referee/referee_UI.c +++ b/modules/referee/referee_UI.c @@ -345,7 +345,6 @@ int UI_ReFresh(int cnt,...) int i; UI_GraphReFresh_t UI_GraphReFresh_data; Graph_Data_t graphData; - // uint8_t temp_datalength = UI_Data_LEN_Head + UI_Operate_LEN_Del; //计算交互数据长度 va_list ap;//创建一个 va_list 类型变量 va_start(ap,cnt);//初始化 va_list 变量为一个参数列表 @@ -381,16 +380,13 @@ int UI_ReFresh(int cnt,...) //先发送帧头、命令码、交互数据帧头三部分,并计算CRC16校验值 UI_GraphReFresh_data.frametail=Get_CRC16_Check_Sum((uint8_t *)&UI_GraphReFresh_data,LEN_HEADER+LEN_CMDID+UI_Data_LEN_Head,0xFFFF); RefereeSend((uint8_t *)&UI_GraphReFresh_data,LEN_HEADER+LEN_CMDID+UI_Data_LEN_Head); - - unsigned char *framepoint; //读写指针 syhtodo是否可以去掉 - + for(i=0;i