Commit 3d0d375b authored by 李延凯's avatar 李延凯

feat: 为2E服务DID 5000添加长度限制

parent 5bfd7733
......@@ -947,6 +947,17 @@ void UDS_Service_2E_Indication(uint32_t A_TA_type, uint16_t A_Length, uint8_t *A
DID = ((uint16_t)UDS_ISO14229_Transfer[0] << 8) | (uint16_t)UDS_ISO14229_Transfer[1];
}
if (0U == NRC)
{
if(DID == 0x5000)
{
if(Data_Length != 34U)
{
NRC = incorrectMessageLength;
}
}
}
if (0U == NRC)
{
switch (DID)
......
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