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
99d830df
Commit
99d830df
authored
Sep 10, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:代码评审问题:修改按键超时时间的清除方式,放到按键动作里清时间,不使用判断硬线信号的方式
parent
8d853941
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+4
-4
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-1
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
99d830df
...
...
@@ -32,14 +32,14 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
{
Key_Left_Short_Press
();
}
Key_Clear_Time
();
break
;
case
KEY_EVENT_SHORT_PRESS_2
:
//3-5s
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
Key_Left_Long_Press
();
}
Key_Clear_Time
();
break
;
case
KEY_EVENT_LONG_PRESS_1
:
//7
break
;
...
...
@@ -86,7 +86,7 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
TYW_RESET_ODO
();
}
Key_Clear_Time
();
break
;
case
KEY_EVENT_OFF_TO_ON
:
break
;
...
...
@@ -224,7 +224,7 @@ void KEY_LEFT_EVENT_NONE_Service(void)
void
Key_Clear_Time
(
void
)
{
if
(
Key_Status_Read_Left
()
==
KEY_REALTIME_PRESS
)
//
if(Key_Status_Read_Left() == KEY_REALTIME_PRESS)
{
MenuInfor
.
Back_Time_Left
=
0
;
MenuInfor
.
Back_Time_Left_Flag
=
0
;
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
99d830df
...
...
@@ -62,7 +62,7 @@ void Sys_10ms_Tasks(void)
void
Sys_20ms_Tasks
(
void
)
{
Key_Clear_Time
();
//
Key_Clear_Time();
Key_Auto_Save
();
Data_Vehicle_Speed_Processing_Service
();
Data_Engine_Speed_Processing_Service
();
...
...
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