From ed6044c63e968fa06c25be1c661313a088348a09 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期五, 17 一月 2025 17:50:34 +0800
Subject: [PATCH] 加入复位逻辑但是注释了,与张世豪V1.4上位机适配,修复跳转传输问题

---
 keil/ymodem.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/keil/ymodem.c b/keil/ymodem.c
index c6bebf3..88c6092 100644
--- a/keil/ymodem.c
+++ b/keil/ymodem.c
@@ -253,7 +253,7 @@
   *         1: abort by user
   */
 uint16_t current_seqno,flash_seqno,i2;
-uint8_t c,temp5,temp6,temp7,temp8;
+uint8_t c,temp5,temp6,temp7,temp8,temp9,temp10,temp11,temp12;
 static int32_t Receive_Packet (uint8_t *data, int32_t *length, uint32_t timeout)
 {
   uint16_t packet_size, computedcrc;
@@ -416,6 +416,7 @@
 										flash_erase(FLASH_ID0, APP_CONFIG_APPLICATION_ADDRESS, APP_CONFIG_APPLICATION_SIZE);//擦除APP
                     Send_Byte(ACK);
                     Send_Byte(CRC16);
+										temp10=1;
                   }
                   /* Filename packet is empty, end session */
                   else
@@ -484,6 +485,7 @@
           }
 				
           Send_Byte(CRC16); //发送校验值
+					temp9=1;
           break;
       }
 			

--
Gitblit v1.9.3