From a9e1eb62473969b240cda9a2ca775e306b4e4e8e Mon Sep 17 00:00:00 2001 From: kidneygood <2979564623@qq.com> Date: Sat, 14 Jan 2023 22:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E9=83=A8=E5=88=86=E5=AE=8F?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=8D=A2=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/referee/referee_UI.c | 59 +------------- modules/referee/referee_UI.h | 27 ------ modules/referee/referee_communication.c | 51 ++++++++++++ modules/referee/referee_communication.h | 15 +--- modules/referee/referee_def.h | 104 +++++++++++++++++------- 5 files changed, 129 insertions(+), 127 deletions(-) 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