Commit 8b89bf42 authored by 李俭双's avatar 李俭双

:beetle: fix:统一使用同一个igon判断条件

parent ca44a497
......@@ -52,7 +52,7 @@ void Data_Engine_Speed_Processing_Service ( void )
Engine_Speed_State = Get_CAN_CH0_ID_101_Sig_ECU_Engine_Speed_State();
//第1步:获取实际转速值及转速有效性
if ( Common_Get_IG_Sts() == COMMON_POWER_ON )
if ( SYS_OPR_STAT_IGN_ON)
{
if((CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x101_Msg_Count) == CAN_SIG_LOST)||(Engine_Speed_State == 1))
{
......
......@@ -79,7 +79,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
ESC_VehicleSpeedState = Get_CAN_CH0_ID_101_Sig_ECU_Vehicle_Speed_State( );
// 第1步:获取实际车速值及车速有效性
if( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if( SYS_OPR_STAT_IGN_ON)
{
if (CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x101_Msg_Count) == CAN_SIG_LOST)
{
......
......@@ -14,7 +14,7 @@ void Data_Voltage_Processing_Service ( void )
{
uint8_t voltage = 0;
uint8_t i = 0;
if ( Common_Get_IG_Sts() == COMMON_POWER_ON )
if ( SYS_OPR_STAT_IGN_ON )
{
if(CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x401_Msg_Count) == CAN_SIG_LOST)
{
......
......@@ -5,7 +5,7 @@
void Gauge_Clock_Display(void)
{
uint8_t PageType_DIS = 0;
if (Common_Get_IG_Sts( ) == COMMON_POWER_ON)
if (SYS_OPR_STAT_IGN_ON)
{
PageType_DIS = Get_Current_PageType();
......@@ -69,7 +69,7 @@ void Gauge_Service(void)
uint8_t k = 0;
if (ClearODO_Flag == 1)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if ( SYS_OPR_STAT_IGN_ON )
{
Check_SEG_Display();
for(k = 0; k < LampCh0_MAX; k ++)
......@@ -98,7 +98,7 @@ void Gauge_Service(void)
}
else
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if ( SYS_OPR_STAT_IGN_ON )
{
if (Common_GetIgnOnTime() >= 3030)
{
......
......@@ -4633,7 +4633,7 @@ void Checkself_SEG_Display(void)
void TYW_Check_Count(void)
{
if ((ClearODO_Flag == 1) && (Common_Get_IG_Sts() == COMMON_POWER_ON))
if ((ClearODO_Flag == 1) && (SYS_OPR_STAT_IGN_ON))
{
if (check_SEG_step < 249u)
{
......
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