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
baizhengyuan
TianYing_ty100
Commits
dec2082a
Commit
dec2082a
authored
Sep 18, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:61555 TCS灯修改判断条件
parent
0a698858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+6
-6
No files found.
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
dec2082a
...
...
@@ -9,7 +9,6 @@ Mileage_t g_ReadMileage;
uint8_t
odo_writeState
;
uint8_t
odo_readState
;
uint32_t
Milleage_InitFlag
=
0U
;
/******************************************************************************
Function:Data_ODO_KL30Init
Description:
...
...
@@ -19,6 +18,7 @@ uint32_t Milleage_InitFlag = 0U;
void
Data_User_Mileage_KL30Init
(
void
)
{
uint32_t
TempBuf
[
20
]
=
{
0
};
uint8_t
TempBufUser
[
20
]
=
{
0
};
Mileage_Init_t
MileInit
=
{
0
};
Mileage_Func_t
Func
=
{
0
};
ODO_Init_t
ODOInit
=
{
0
};
...
...
@@ -98,8 +98,8 @@ void Data_User_Mileage_KL30Init(void)
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
eeprom_ReadRecord
(
EEPROM_BLOCK_08
,
(
uint8_t
*
)
TempBuf
,
1
);
if
(
TempBuf
[
0u
]
==
0xFFFFFF
FF
)
eeprom_ReadRecord
(
EEPROM_BLOCK_08
,
(
uint8_t
*
)
TempBuf
User
,
1
);
if
(
TempBuf
User
[
0u
]
==
0x
FF
)
{
MenuData
.
Tcs_Val
=
1
;
//Data_User_EEPROM_Write(EM_MenuData_Tcs_Val, &MenuData.Tcs_Val, 1u);
...
...
@@ -107,8 +107,8 @@ void Data_User_Mileage_KL30Init(void)
}
//Data_User_EEPROM_Read(EM_MenuData_TPMS_LEARN, TempBuf, 1u);
eeprom_ReadRecord
(
EEPROM_BLOCK_09
,
(
uint8_t
*
)
TempBuf
,
2
);
if
(
TempBuf
[
0u
]
==
0xFFFFFF
FF
)
eeprom_ReadRecord
(
EEPROM_BLOCK_09
,
(
uint8_t
*
)
TempBuf
User
,
2
);
if
(
TempBuf
User
[
0u
]
==
0x
FF
)
{
TPMSLearn
[
0
]
=
0
;
//MenuData.TPMS_Front_Learn;
TPMSLearn
[
1
]
=
0
;
//MenuData.TPMS_Rear_Learn;
...
...
@@ -143,7 +143,7 @@ uint32_t Get_MileageInit_Status(void)
return
Milleage_InitFlag
;
}
uint32_t
Data_User_EEPROM_Read
(
uint16_t
u16BlockID
,
uint32_t
u32Data
[],
uint16_t
u16Len
)
uint32_t
Data_User_EEPROM_Read
(
uint16_t
u16BlockID
,
uint32_t
u32Data
[],
uint16_t
u16Len
)
{
switch
(
u16BlockID
)
{
...
...
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