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

🐞 fix:胎压学习580外发三帧更改

parent 8c42b5aa
...@@ -157,7 +157,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[]) ...@@ -157,7 +157,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
if(Get_Tpms_TX_Flag() == 1) if(Get_Tpms_TX_Flag() == 1)
{ {
if(++CAN_TX_Count >= 3) if(++CAN_TX_Count > 3)
{ {
Tpms_TX_Flag = 0; Tpms_TX_Flag = 0;
CAN_TX_Count = 0; CAN_TX_Count = 0;
...@@ -170,7 +170,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[]) ...@@ -170,7 +170,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
} }
else if(Get_Tpms_TX_Flag() == 2) else if(Get_Tpms_TX_Flag() == 2)
{ {
if(++CAN_TX_Count >= 3) if(++CAN_TX_Count > 3)
{ {
Tpms_TX_Flag = 0; Tpms_TX_Flag = 0;
CAN_TX_Count = 0; CAN_TX_Count = 0;
...@@ -184,11 +184,11 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[]) ...@@ -184,11 +184,11 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
else else
{ {
CAN_TX_Count = 0; CAN_TX_Count = 0;
p580 -> Sig.TPMS_LEARN_CND_BYTE0 = 0x0; //p580 -> Sig.TPMS_LEARN_CND_BYTE0 = 0x0;
p580 -> Sig.TPMS_LEARN_CND_BYTE1 = 0x0; //p580 -> Sig.TPMS_LEARN_CND_BYTE1 = 0x0;
p580 -> Sig.TPMS_LEARN_CND_BYTE2 = 0x0; //p580 -> Sig.TPMS_LEARN_CND_BYTE2 = 0x0;
p580 -> Sig.TPMS_LEARN_CND_BYTE3 = 0x0; //p580 -> Sig.TPMS_LEARN_CND_BYTE3 = 0x0;
p580 -> Sig.TPMS_LEARN_CND_BYTE4 = 0x02; //p580 -> Sig.TPMS_LEARN_CND_BYTE4 = 0x02;
} }
} }
......
...@@ -346,7 +346,11 @@ void Can_Write(st_CAN_Msg *Msg) ...@@ -346,7 +346,11 @@ void Can_Write(st_CAN_Msg *Msg)
break; break;
#if (IC_Current == TY200_080000b_ty) #if (IC_Current == TY200_080000b_ty)
case 0x580: case 0x580:
if(Get_Tpms_TX_Flag() == 1 || Get_Tpms_TX_Flag() == 2)
{
CAN_Transmit(CAN0MSG14, &CAN_SendMsg); CAN_Transmit(CAN0MSG14, &CAN_SendMsg);
}
break; break;
#endif #endif
default: default:
......
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