Commit 0aecf20c authored by 李冠华's avatar 李冠华

🐞 fix:修改KL15或KL30切断后进入休眠的计时开始判断

parent 61e840ac
...@@ -115,6 +115,7 @@ void Common_Input_Para(void) ...@@ -115,6 +115,7 @@ void Common_Input_Para(void)
} }
else else
{ {
#if (PART_NUMBER == RMR42E_60)
PowerIgnOnTimeLine = 0ul; PowerIgnOnTimeLine = 0ul;
if (PowerIgnOffTimeLine < 0x7ffffffful) if (PowerIgnOffTimeLine < 0x7ffffffful)
{ {
...@@ -132,6 +133,18 @@ void Common_Input_Para(void) ...@@ -132,6 +133,18 @@ void Common_Input_Para(void)
Common_Set_IG_Sts(COMMON_POWER_OFF); Common_Set_IG_Sts(COMMON_POWER_OFF);
Common_Set_IG_Sts_Valid(COMMON_Valid); Common_Set_IG_Sts_Valid(COMMON_Valid);
#else
if (Get_CAN_Power_State() == KEY_OFF)
{
PowerIgnOnTimeLine = 0ul;
if (PowerIgnOffTimeLine < 0x7ffffffful)
{
PowerIgnOffTimeLine += 2u;
}
}
Common_Set_IG_Sts(COMMON_POWER_OFF);
Common_Set_IG_Sts_Valid(COMMON_Valid);
#endif
} }
#endif #endif
......
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