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
491c4b67
Commit
491c4b67
authored
Oct 08, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:trip存储删除没有用到的部分
parent
8dca87f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
Services_Mileage.h
Firmware/Source/Component/Mileage/Services_Mileage.h
+3
-3
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+12
-12
No files found.
Firmware/Source/Component/Mileage/Services_Mileage.h
View file @
491c4b67
...
@@ -37,9 +37,9 @@ Platform_16Bit
...
@@ -37,9 +37,9 @@ Platform_16Bit
typedef
enum
typedef
enum
{
{
EM_TRIP_A
,
EM_TRIP_A
,
EM_TRIP_B
,
//
EM_TRIP_B,
EM_TRIP_C
,
//
EM_TRIP_C,
EM_TRIP_D
,
//
EM_TRIP_D,
EM_TRIP_MAX
,
EM_TRIP_MAX
,
}
DataTripEnum_t
;
}
DataTripEnum_t
;
...
...
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
491c4b67
...
@@ -67,7 +67,7 @@ void Data_User_Mileage_KL30Init(void)
...
@@ -67,7 +67,7 @@ void Data_User_Mileage_KL30Init(void)
ODOInit
.
MaxValue
=
1999990
;
ODOInit
.
MaxValue
=
1999990
;
Data_ODO_KL30_Init
(
DataODOBuf
,
&
ODOInit
,
Func
.
EEPromWrite_Cbk
);
Data_ODO_KL30_Init
(
DataODOBuf
,
&
ODOInit
,
Func
.
EEPromWrite_Cbk
);
(
void
)
Data_User_EEPROM_Read
(
EM_TRIP_BLOCK
,
TempBuf
+
3
,
4
);
(
void
)
Data_User_EEPROM_Read
(
EM_TRIP_BLOCK
,
TempBuf
+
3
,
1
);
if
(
TempBuf
[
3
]
==
0XFFFFFFFF
)
if
(
TempBuf
[
3
]
==
0XFFFFFFFF
)
{
{
TripInit
[
EM_TRIP_A
].
Stamp
=
0
;
TripInit
[
EM_TRIP_A
].
Stamp
=
0
;
...
@@ -88,17 +88,17 @@ void Data_User_Mileage_KL30Init(void)
...
@@ -88,17 +88,17 @@ void Data_User_Mileage_KL30Init(void)
TripInit
[
EM_TRIP_A
].
MaxValue
=
9999
;
/* 最大999.9km 进行复位 */
TripInit
[
EM_TRIP_A
].
MaxValue
=
9999
;
/* 最大999.9km 进行复位 */
TripInit
[
EM_TRIP_A
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_A
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_B
].
Stamp
=
0xFFFFFFFFu
;
//
TripInit[EM_TRIP_B].Stamp = 0xFFFFFFFFu;
TripInit
[
EM_TRIP_B
].
MaxValue
=
99999
;
//
TripInit[EM_TRIP_B].MaxValue = 99999;
TripInit
[
EM_TRIP_B
].
IsRestart
=
1u
;
//
TripInit[EM_TRIP_B].IsRestart = 1u;
//
TripInit
[
EM_TRIP_C
].
Stamp
=
0xFFFFFFFFu
;
//
TripInit[EM_TRIP_C].Stamp = 0xFFFFFFFFu;
TripInit
[
EM_TRIP_C
].
MaxValue
=
99999
;
//
TripInit[EM_TRIP_C].MaxValue = 99999;
TripInit
[
EM_TRIP_C
].
IsRestart
=
1u
;
//
TripInit[EM_TRIP_C].IsRestart = 1u;
//
TripInit
[
EM_TRIP_D
].
Stamp
=
0xFFFFFFFFu
;
//
TripInit[EM_TRIP_D].Stamp = 0xFFFFFFFFu;
TripInit
[
EM_TRIP_D
].
MaxValue
=
99999
;
//
TripInit[EM_TRIP_D].MaxValue = 99999;
TripInit
[
EM_TRIP_D
].
IsRestart
=
1u
;
//
TripInit[EM_TRIP_D].IsRestart = 1u;
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
...
...
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