From a52817ac33ed40cbbfdcbfacd1a49fa40e928341 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 17 四月 2025 16:19:13 +0800
Subject: [PATCH] 兼容4g手环跟4g工卡两种硬件升级

---
 dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c b/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c
index 5b6a535..7f2647d 100644
--- a/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c
+++ b/dualboots_Gai_youhua/keil/customboot/include/drivers/ymodem.c
@@ -331,6 +331,7 @@
   * @param  buf: Address of the first byte
   * @retval The size of the file
   */
+extern volatile unsigned long  shengji_time_100ms;
 extern volatile unsigned long time32_reset;
 uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;	//1024 + 5
 uint8_t bufferOut[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
@@ -458,6 +459,7 @@
                     Send_Byte(ACK);
 										flash_seqno++;
                     time32_reset = 0;
+                                        shengji_time_100ms=0;
 									}
 									else
 									{

--
Gitblit v1.9.3