From e0466376254927de7008e6ab699ba640f8f6a7d8 Mon Sep 17 00:00:00 2001 From: sunbeam0529 Date: Tue, 8 Jul 2025 09:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E6=94=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A4=84=E7=90=86BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_code/main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app_code/main.c b/app_code/main.c index 7ecd0db..0528952 100644 --- a/app_code/main.c +++ b/app_code/main.c @@ -95,6 +95,9 @@ unsigned int ADC_Average(unsigned int *buff, unsigned int num, unsigned int thre // new void OutPutCtrl(void); + +unsigned char code BUILD_DATA[] = __DATE__ ; +unsigned char code BUILD_TIME[] = __TIME__ ; /***************变量定义**************/ bit busy = 0; bit SendEN = 0; @@ -421,7 +424,7 @@ void OutPutCtrl(void) } } -void (void) +void turnOFFOutput(void) { STOP_FLAG = 1; Shut_Hour = 0; @@ -1588,14 +1591,10 @@ void DataParsing(void) { if (Uart1Ready_R == 1) // 数据接收完成,处理接收到的数据 { - // 按键返回 if (Rxbuff[0] == 0x02) { - // 参数复位 - TargetCurrent = Rxbuff[1] << 8 + Rxbuff[2]; - // 参数掉电保存(直接调用函数) + TargetCurrent = (Rxbuff[1] << 8) + Rxbuff[2]; Save_Flag = 1; - // Parameter_Save(); } } Uart1Ready_R = 0;