From 41e9fdfa9a4522564cbdf8b5dd6d278d1613ae32 Mon Sep 17 00:00:00 2001 From: sunbeam Date: Sun, 19 May 2024 20:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=B2=E5=8F=A3=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/user/appTask.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/APP/user/appTask.c b/APP/user/appTask.c index bcdbcc2..a7444cf 100644 --- a/APP/user/appTask.c +++ b/APP/user/appTask.c @@ -470,6 +470,18 @@ void MsgPro(uint8_t len) break; } + + + if (gIGN_State == 1 && battState == BattStatus_Normal) + { + SendTFJRmsg(fan_state,heat_state); + setFanDuty(fan_duty_arr[fan_state]); + setHeatDuty(heat_duty_arr[heat_state]); + + } + } + if (Rxdata[1] != 0) + { switch (Rxdata[1]) { case 0x0A: @@ -490,20 +502,12 @@ void MsgPro(uint8_t len) default: break; } - - if (gIGN_State == 1 && battState == BattStatus_Normal) - { - SendTFJRmsg(fan_state,heat_state); - setFanDuty(fan_duty_arr[fan_state]); - setHeatDuty(heat_duty_arr[heat_state]); - amCtrl_SetState(amCtrl_state); - } - - + amCtrl_SetState(amCtrl_state); } + } RxFlag = 0;