Commit 81dc56cd authored by hu's avatar hu

增加多帧数据最大长度限制

parent 63027966
......@@ -2160,9 +2160,12 @@ void DoCAN_Get_Multi_frame00_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFF00.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFF00.DataDTC.UnionDTC[ECM18EBFF00.bCtrByte++] = Get_ID_18EBFF00_Sig_DATA(i);
}
}
ECM18EBFF00.bPrePckNum ++;
ECM18EBFF00.bRcvBusy = 1; /*正在接收*/
}
......@@ -2216,9 +2219,12 @@ void DoCAN_Get_Multi_frame03_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFF03.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFF03.DataDTC.UnionDTC[ECM18EBFF03.bCtrByte++] = Get_ID_18EBFF03_Sig_DATA(i);
}
}
ECM18EBFF03.bPrePckNum ++;
ECM18EBFF03.bRcvBusy = 1; /*正在接收*/
}
......@@ -2272,9 +2278,12 @@ void DoCAN_Get_Multi_frame0B_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFF0B.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFF0B.DataDTC.UnionDTC[ECM18EBFF0B.bCtrByte++] = Get_ID_18EBFF0B_Sig_DATA(i);
}
}
ECM18EBFF0B.bPrePckNum ++;
ECM18EBFF0B.bRcvBusy = 1; /*正在接收*/
}
......@@ -2326,9 +2335,12 @@ void DoCAN_Get_Multi_frame10_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFF10.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFF10.DataDTC.UnionDTC[ECM18EBFF10.bCtrByte++] = Get_ID_18EBFF10_Sig_DATA(i);
}
}
ECM18EBFF10.bPrePckNum ++;
ECM18EBFF10.bRcvBusy = 1; /*正在接收*/
}
......@@ -2380,9 +2392,12 @@ void DoCAN_Get_Multi_frameA0_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFFA0.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFFA0.DataDTC.UnionDTC[ECM18EBFFA0.bCtrByte++] = Get_ID_18EBFFA0_Sig_DATA(i);
}
}
ECM18EBFFA0.bPrePckNum ++;
ECM18EBFFA0.bRcvBusy = 1; /*正在接收*/
}
......@@ -2434,9 +2449,12 @@ void DoCAN_Get_Multi_frameE8_Recv(void)
)
{
for (i = 1 ; i < 8; i++)
{
if (ECM18EBFFE8.bCtrByte < MAX_MULCANDATALEN)
{
ECM18EBFFE8.DataDTC.UnionDTC[ECM18EBFFE8.bCtrByte++] = Get_ID_18EBFFE8_Sig_DATA(i);
}
}
ECM18EBFFE8.bPrePckNum ++;
ECM18EBFFE8.bRcvBusy = 1; /*正在接收*/
}
......
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