Commit b2270b14 authored by 陈家乐's avatar 陈家乐

62041 ID220外发AliveCounter出现异常跳变,多次初始化,增加初始化条件

parent 8005f70d
...@@ -123,7 +123,7 @@ static void Power_Wakeup_Init(void) ...@@ -123,7 +123,7 @@ static void Power_Wakeup_Init(void)
Sys_WakeUp_Init(); Sys_WakeUp_Init();
Data_TPMS_KL15_WAKE_UP_Init(); Data_TPMS_KL15_WAKE_UP_Init();
//CAN_TX_Count_Init(); CAN_TX_Count_Init();
CAN_TX_Init(); CAN_TX_Init();
//CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable); //CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
...@@ -161,6 +161,7 @@ static void Power_Wakeup_Init(void) ...@@ -161,6 +161,7 @@ static void Power_Wakeup_Init(void)
Common_DataInit(); Common_DataInit();
Power_KL30_Init_flag = 1; Power_KL30_Init_flag = 1;
AliveCount_KL30_ResettingFlag = 1;
} }
static void Power_LVP_Init(void) static void Power_LVP_Init(void)
...@@ -176,18 +177,20 @@ static void Power_IG_OFF_Init(void) ...@@ -176,18 +177,20 @@ static void Power_IG_OFF_Init(void)
{ {
Line_In_KL15_OFF_Init(); Line_In_KL15_OFF_Init();
Checkself_Init(); Checkself_Init();
Common_Input_Para();
//CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Disable); //CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Disable);
} }
static void Power_IG_ON_Init(void) static void Power_IG_ON_Init(void)
{ {
Checkself_Init(); CAN_TX_Count_Init();
Checkself_Init();
Line_In_KL15_ON_Init(); Line_In_KL15_ON_Init();
Telltales_KL15_Init(); Telltales_KL15_Init();
Telltales_UserInit(); Telltales_UserInit();
Fuel_KL15_Init(); Fuel_KL15_Init();
Data_Voltage_Init(); Data_Voltage_Init();
MenuData_TCS_Init(); MenuData_TCS_Init();
Data_Coolant_Temp_KL15_Init(); Data_Coolant_Temp_KL15_Init();
BlueTooth_KL30_KL15_Wakeup_Init(); BlueTooth_KL30_KL15_Wakeup_Init();
Data_TPMS_KL15_WAKE_UP_Init(); Data_TPMS_KL15_WAKE_UP_Init();
...@@ -196,7 +199,7 @@ static void Power_IG_ON_Init(void) ...@@ -196,7 +199,7 @@ static void Power_IG_ON_Init(void)
Data_Read_DiagPara(); Data_Read_DiagPara();
FaultCode_Init(); FaultCode_Init();
CAN_TX_Count_Init();
} }
static void Power_Sleep_Init(void) static void Power_Sleep_Init(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment