Commit efb92275 authored by 张明扬's avatar 张明扬 🇨🇳

feat:代码评审,删除原来使用的DATA

parent d86ced18
...@@ -903,7 +903,6 @@ void UDS_Service_2E_Indication ( uint16_t A_TA_type, uint16_t A_Length, uint8_t ...@@ -903,7 +903,6 @@ void UDS_Service_2E_Indication ( uint16_t A_TA_type, uint16_t A_Length, uint8_t
{ {
uint16_t i; uint16_t i;
uint16_t DID; uint16_t DID;
uint8_t Data[8];
uint8_t Service2EDiagDataLength; uint8_t Service2EDiagDataLength;
uint16_t FunorPhy = 0; uint16_t FunorPhy = 0;
Service2EDiagDataLength = A_Length; Service2EDiagDataLength = A_Length;
...@@ -945,17 +944,11 @@ void UDS_Service_2E_Indication ( uint16_t A_TA_type, uint16_t A_Length, uint8_t ...@@ -945,17 +944,11 @@ void UDS_Service_2E_Indication ( uint16_t A_TA_type, uint16_t A_Length, uint8_t
case 0xF184: // 写入UUID case 0xF184: // 写入UUID
if ( Service2EDiagDataLength == 23 ) //限制最大长度 if ( Service2EDiagDataLength == 23 ) //限制最大长度
{ {
for (i = 0; i < 21; i++)
{
Data[i] = UDS_ISO14229_Transfer[i + 2];
}
for (i = 0; i < (sizeof(Ser2EDataForDFlash.DID_F184)); i++) for (i = 0; i < (sizeof(Ser2EDataForDFlash.DID_F184)); i++)
{ {
Ser2EDataForDFlash.DID_F184[i] = Data[i]; Ser2EDataForDFlash.DID_F184[i] = UDS_ISO14229_Transfer[i + 2];
} }
Ser2EDataForDFlash.Flag = 0x5AA5A77Au; Ser2EDataForDFlash.Flag = 0x5AA5A77Au;
// memcpy(Ser2EDataForDFlash.DID_F184, Data, sizeof(Ser2EDataForDFlash.DID_F184));
// 擦除扇区 // 擦除扇区
EraseSector(0x500600ul); EraseSector(0x500600ul);
// App程序状态和22服务数据全写进去 // App程序状态和22服务数据全写进去
......
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