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
a2aed1b8
Commit
a2aed1b8
authored
Jun 18, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:增加胎压单位转换及胎压学习的按键菜单逻辑
parent
7173fbae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+3
-3
Key_user.h
Firmware/Source/Component/Key/Key_user.h
+4
-2
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
a2aed1b8
...
...
@@ -310,11 +310,11 @@ void Key_Left_Short_Press(void)
}
else
if
(
PageType
==
Page_Front_Tpms
)
{
PageType
=
=
Page_Rear_Tpms
;
PageType
=
Page_Rear_Tpms
;
}
else
if
(
PageType
==
Page_Rear_Tpms
)
{
PageType
=
=
Page_Front_Tpms
;
PageType
=
Page_Front_Tpms
;
}
else
{
...
...
@@ -390,7 +390,7 @@ void Key_Left_Long_Press(void)
}
else
if
(
PageType
==
Page_Tpms_Unit
)
{
PageType
=
=
Page_Front_Tpms
;
PageType
=
Page_Front_Tpms
;
}
else
if
((
PageType
==
Page_Front_Tpms
)
||
(
PageType
==
Page_Rear_Tpms
))
{
...
...
Firmware/Source/Component/Key/Key_user.h
View file @
a2aed1b8
...
...
@@ -20,8 +20,10 @@ typedef struct
uint8_t
KM_Unit
;
// 0 km, 1 mile
uint8_t
Tpms_Unit
;
// 0 bar, 1 psi
uint32_t
Tcs_Val
;
// 0 off, 1 on
uint32_t
TPMS_Front_Learn
;
uint32_t
TPMS_Rear_Learn
;
uint8_t
TPMS_Front_Learn
;
uint8_t
TPMS_Rear_Learn
;
uint8_t
TPMS_Front_FirstLearn_Flag
;
uint8_t
TPMS_Rear_FirstLearn_Flag
;
}
_Menu_Data
;
typedef
enum
...
...
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