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
9af842f6
Commit
9af842f6
authored
May 29, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:44590 【天鹰TY100】【按键】自检期间响应按键
parent
a3e20da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+28
-16
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
9af842f6
...
...
@@ -20,10 +20,18 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
switch
(
enKeyEvent
)
{
case
KEY_EVENT_SHORT_PRESS_1
:
//1s
Key_Left_Short_Press
();
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
Key_Left_Short_Press
();
}
break
;
case
KEY_EVENT_SHORT_PRESS_2
:
//3-5s
Key_Left_Long_Press
();
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
Key_Left_Long_Press
();
}
break
;
case
KEY_EVENT_LONG_PRESS_1
:
//7
break
;
...
...
@@ -32,26 +40,30 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
case
KEY_EVENT_LONG_PRESS_3
:
//9s
break
;
case
KEY_EVENT_LONG_PRESS_4
:
//10s
Maintain_Reset_Service
();
if
((
PageMenu
==
Page_TCS
)
&&
(
PageType
==
Page_Menu
))
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
if
(
Get_Dis_Tcs_Val
()
==
0
)
Maintain_Reset_Service
();
if
((
PageMenu
==
Page_TCS
)
&&
(
PageType
==
Page_Menu
))
{
MenuData
.
Tcs_Val
=
1
;
//on
if
(
Get_Dis_Tcs_Val
()
==
0
)
{
MenuData
.
Tcs_Val
=
1
;
//on
}
else
{
MenuData
.
Tcs_Val
=
0
;
//off
}
}
else
if
((
PageMenu
==
Page_Trip
)
&&
(
PageType
==
Page_Menu
))
{
MenuData
.
Tcs_Val
=
0
;
//off
Data_Clear_Trip_All
();
}
TYW_RESET_ODO
();
}
if
((
PageMenu
==
Page_Trip
)
&&
(
PageType
==
Page_Menu
))
{
Data_Clear_Trip_All
();
}
TYW_RESET_ODO
();
break
;
case
KEY_EVENT_OFF_TO_ON
:
break
;
...
...
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