|
@@ -3,7 +3,7 @@
|
|
|
* @Date : 2021-10-14 09:27:15
|
|
|
* @Version : V3.0
|
|
|
* @LastEditors : ChenJie
|
|
|
- * @LastEditTime : 2021-11-04 14:14:26
|
|
|
+ * @LastEditTime : 2021-11-05 14:47:02
|
|
|
* @Description : 主要负责:1.工作模式转换2.定时器定时3.定时保存运行数据4.异常状态重启
|
|
|
* @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\src\AppTaskMain.c
|
|
|
*/
|
|
@@ -99,7 +99,6 @@ static void MainTask(void *arg)
|
|
|
xTimerStart(sleep_timer, 0);
|
|
|
WorkTimerEnd = FALSE;
|
|
|
NVIC_EnableIRQ(PadWakeup1_IRQn);
|
|
|
- PadInterrupt = 0x00;
|
|
|
UartInterruptcount = 0;
|
|
|
PadInterrupt_clrCounter = 0;
|
|
|
PROC_MAIN_STATE_SWITCH(PROCESS_STATE_LISTEN);
|
|
@@ -108,6 +107,7 @@ static void MainTask(void *arg)
|
|
|
if ((BMS_Fota_update_flag != FALSE) || (TCPWorkState != 0x00) || (BattWorkStateDelay != BATT_IDLE_SYM) || (battWorkState != BATT_IDLE_SYM) || (PadInterrupt != 0x00))
|
|
|
{
|
|
|
xTimerReset(work_timer, 0);
|
|
|
+ PadInterrupt = 0x00;
|
|
|
}
|
|
|
if ((TcpErrorcount >= 10 && getbit(PadInterrupt, 0) == 0x00 && battWorkState != BATT_CHARGE_SYM) || (NB_Fota_update_flag == TRUE))
|
|
|
{
|