From 0460399f130f2bb57b820a59512066664a21926b Mon Sep 17 00:00:00 2001 From: kyz Date: Mon, 26 Jan 2026 14:48:28 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BD=8D=E6=9C=BA?= =?utf8?q?=E6=B8=85=E9=99=A4=E6=95=B0=E6=8D=AE=E6=8C=87=E4=BB=A4=E6=94=AF?= =?utf8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- QiDong/BSP/src/bsp_host.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/QiDong/BSP/src/bsp_host.c b/QiDong/BSP/src/bsp_host.c index 8fb4940..6b4f43a 100644 --- a/QiDong/BSP/src/bsp_host.c +++ b/QiDong/BSP/src/bsp_host.c @@ -1556,7 +1556,11 @@ int handle_host_cmd( pkt_t *pkt ) break; case 0x0C: //»ñÈ¡Îļþ¼Ç¼ break; - + case 0x0D: //Çå³ýÎļþ¼Ç¼ + ModifyVarStructVar.StorageNumber = 0; + sflash_write_ModifyVarStructVar(&ModifyVarStructVar); + host_resp( pkt->cmd ); + break; case 0x0E: //ÉèÖûØÍËÐÅÏ¢ host_resp( pkt->cmd ); break; @@ -1658,6 +1662,10 @@ int handle_host_cmd( pkt_t *pkt ) host_resp( pkt->cmd ); break; case 0x18: //Çå³ý»ù´¡Êý¾Ý + host_resp( pkt->cmd ); + memset( &TmsKeyData, 0, sizeof(TmsKeyData)); + SaveFlag[UserNameMem] = 1; + host_resp( pkt->cmd ); break; case 0x19: //·¢ËÍPCBAÖµ -- 2.34.1