Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
efb92275
Commit
efb92275
authored
Aug 18, 2024
by
张明扬
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:代码评审,删除原来使用的DATA
parent
d86ced18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+1
-8
No files found.
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
efb92275
...
@@ -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服务数据全写进去
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment