From 6e3f1f560d618b37ee1a47fa2b0f682b70c3ef1c Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Wed, 19 Jun 2024 17:25:45 +0800
Subject: [PATCH] 增加OTA协议

---
 Function/WirelessRemoteComm/wrc_sizhu_v4.h |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Function/WirelessRemoteComm/wrc_sizhu_v4.h b/Function/WirelessRemoteComm/wrc_sizhu_v4.h
index 99c77e9..41f74aa 100644
--- a/Function/WirelessRemoteComm/wrc_sizhu_v4.h
+++ b/Function/WirelessRemoteComm/wrc_sizhu_v4.h
@@ -65,6 +65,13 @@
 #define SIZHU_CONTROL_CODE_SET_PRICE 0x0402
 #define SIZHU_CONTROL_CODE_READ_PRICE 0x0403
 
+//OTA
+#define SIZHU_CONTROL_OTA_CONFIG 0x9601
+#define SIZHU_CONTROL_OTA_DIFF_DATA 0x9602
+#define SIZHU_CONTROL_OTA_CHECK 	0x9603
+#define SIZHU_CONTROL_OTA_DIFF_MAP	0x9604
+#define SIZHU_CONTROL_OTA_CONFIG_BSDIFF_LZMA 0x9605
+
 #pragma	pack(1)
 
 
@@ -138,7 +145,7 @@
 #pragma pack()
 
 extern ErrorStatus	wrc_sizhuV4_result_flag;    //���յ�ͨѶ����жϣ���ʼ��FAIL�����ո���Э��ȷ�ϱ���ͨѶ�Ƿ�ɹ�������˼����Э��ͨ������֡�ж��Ƿ����ճɹ�
-
+extern ErrorStatus	report_sizhuV4_result_flag; //�ϱ��Ƿ�ɹ���־������һ��֮����û���ϴ��ɹ�������wrc_sizhuV4_result_flagͨѶ�Ƿ�ɹ���һ��������һ�㣬ֻҪ�����ϱ���Ӧ�ɹ��������ϱ��ɹ����յ�����֡Ҳ����ɹ���
 
 void	SizhuV4SendParaInit(void);
 uint16_t	SizhuV4SendNormalData2buf(uint8_t * send_buf);

--
Gitblit v1.9.3