From 08b3909c40a192778719c6262bbee4745682948d Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Fri, 31 May 2024 19:15:47 +0800
Subject: [PATCH] 测试和修改了一些功能bug

---
 Function/WirelessRemoteComm/wrc_sizhu_v4.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Function/WirelessRemoteComm/wrc_sizhu_v4.c b/Function/WirelessRemoteComm/wrc_sizhu_v4.c
index a8fa7b8..ae55cbb 100644
--- a/Function/WirelessRemoteComm/wrc_sizhu_v4.c
+++ b/Function/WirelessRemoteComm/wrc_sizhu_v4.c
@@ -15,6 +15,7 @@
 static	SIZHU_V4_PROTOCOL_TAIL_T	proto_tail_up_g = {.frame_end_code = SIZHU_FRAME_TAIL};
 static	SIZHU_V4_REPORT_CTRL_PARA_T	report_ctrl_para_g;
 ErrorStatus	wrc_sizhuV4_result_flag = FAIL;    //���յ�ͨѶ����жϣ���ʼ��FAIL�����ո���Э��ȷ�ϱ���ͨѶ�Ƿ�ɹ�������˼����Э��ͨ������֡�ж��Ƿ����ճɹ�
+ErrorStatus	report_sizhuV4_result_flag = FAIL; //�ϱ��Ƿ�ɹ���־������һ��֮����û���ϴ��ɹ�������wrc_sizhuV4_result_flagͨѶ�Ƿ�ɹ���һ��������һ�㣬ֻҪ�����ϱ���Ӧ�ɹ��������ϱ��ɹ����յ�����֡Ҳ����ɹ�
 
 //static	uint16_t	current_report_data_num = 0;
 
@@ -228,6 +229,7 @@
 	WRC_STATUS	return_code = WRC_WAIT_REC_DATA;
 	if(*receive_buf == 0x00){
 		//��Ӧ�ɹ�
+		report_sizhuV4_result_flag = PASS;
 		if(protocol_head_up_g.frame_num == 1){
 			//?��һ���ϱ��ɹ�֮����������֣�����һ֡ʱû��������Ӧ֡�����ڽ���֡�л�����ƽ̨���µ�ָ�����ٴ����������
 			for(uint8_t count_j =0;count_j < 7;count_j ++){
@@ -260,6 +262,7 @@
 	int difference_value;
 	
 	wrc_sizhuV4_result_flag = PASS;
+	report_sizhuV4_result_flag = PASS;
 	
 	//?��һ���ϱ��ɹ�֮����������֣�����һ֡ʱû��������Ӧ֡�����ڽ���֡�л�����ƽ̨���µ�ָ�����ٴ����������
 	for(uint8_t count_j =0;count_j < 7;count_j ++){

--
Gitblit v1.9.3