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

🐞 fix:52817 AliveCounter信号,仪表重新上电,第一帧发送到数据错误

parent 816950cb
......@@ -28,14 +28,7 @@ void Can_Set_Buff_220(canlib_uint8_t CopyData[])
p220 -> Sig.CheckSum = (Get_Dis_Tcs_Val() == 1) ? 8 : 0;
}
if(AliveCountTimer < 7)
{
AliveCountTimer++;
}
else
{
AliveCountTimer = 0;
}
}
void Can_Set_Buff_6EE(canlib_uint8_t CopyData[])
......
......@@ -5,6 +5,7 @@
#include "Application.h"
#include "Components.h"
extern uint16_t AliveCountTimer;
typedef union
{
......
......@@ -349,6 +349,14 @@ uint8_t COM_APP_Process(st_CAN_Msg *Msg)
break;
case 0x220:
CAN_result = CAN_Transmit(CAN0MSG10, &CAN_SendMsg);
if(AliveCountTimer < 7)
{
AliveCountTimer++;
}
else
{
AliveCountTimer = 0;
}
break;
#if (IC_Current == TY200_080000b_ty)
case 0x580:
......
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