Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
0126f2a2
Commit
0126f2a2
authored
Nov 08, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:屏蔽导航界面机油压力指示灯,优化按键逻辑
parent
d1086d26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
26 deletions
+44
-26
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+4
-4
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+40
-22
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
0126f2a2
...
...
@@ -3056,10 +3056,10 @@ static void AMT630H_GUI_PhoneConnect_Light()
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0472_251_485
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Oil_Pressure_Alert
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0466_874_488
);
}
//
if(Get_TelltalesLedSts(em_LED_Oil_Pressure_Alert))
//
{
//
SetPagePic(GRAPHICS_PAGE_0, Pic_0466_874_488);
//
}
if
(
Get_TelltalesLedSts
(
em_LED_TCS
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0473_172_490
);
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
0126f2a2
...
...
@@ -51,10 +51,10 @@ void Key_Operation_Right(Key_Event_en_t enKeyEvent)//确认
{
case
KEY_EVENT_SHORT_PRESS_1
:
/* 在数字闪烁界面的时候,按确认键保存时间 */
if
((
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_HOUR_TENB_SET
)
||
if
(
((
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_HOUR_TENB_SET
)
||
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_HOUR_BIT_SET
)
||
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_MIN_TENB_SET
)
||
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_MIN_BIT_SET
)
)
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_CLOCK_MIN_BIT_SET
)
)
&&
(
Get_ActualVechileSpeed
()
==
0
))
{
// Menu_Logic_Operation_Clock_Hour_Tenb_Set(MENU_KEY_CONFIRM_SHORT);
counter_val
.
time
.
RTC_Hours
=
(
MenuData
.
Dis_Hour_Tenb
*
10
+
MenuData
.
Dis_Hour_Bit
);
...
...
@@ -65,9 +65,9 @@ void Key_Operation_Right(Key_Event_en_t enKeyEvent)//确认
Key_Event_Short_Press_Right
();
break
;
case
KEY_EVENT_SHORT_PRESS_2
:
Key_Event_SHORT_PRESS_2_Right
();
break
;
case
KEY_EVENT_LONG_PRESS_1
:
//2s
Key_Event_SHORT_PRESS_2_Right
();
break
;
case
KEY_EVENT_LONG_PRESS_2
:
//3s
break
;
...
...
@@ -178,31 +178,36 @@ void Key_TimeOut_Service(void)
{
Menu_Service
(
MENU_KEY_TIMEOUT
);
}
else
{
;
}
}
else
{
;
}
}
void
Key_Auto_Save
(
void
)
{
{
//
RTC_SetTime(&counter_val.time);
}
//
{
//
RTC_SetTime(&counter_val.time);
//
}
{
//
RTC_SetTime(&counter_val.time);
}
//
{
//
RTC_SetTime(&counter_val.time);
//
}
}
void
Key_Event_Short_Press_Left
(
void
)
//选择
{
if
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_MAIN_ITEM
)
//切换大小计
if
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_MAIN_ITEM
)
//
接电话,
切换大小计
{
if
((
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Talking
)
)
if
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
{
PackedTransfer_BlueTooth_DataSet
(
Phone_Pick_Up
);
}
...
...
@@ -217,10 +222,14 @@ void Key_Event_Short_Press_Left(void)//选择
}
else
if
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_PHONE_CONNECT_APP
)
{
if
((
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Talking
)
)
if
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
{
PackedTransfer_BlueTooth_DataSet
(
Phone_Pick_Up
);
}
else
{
;
}
}
if
(((
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_DISPLAY_MODE
)
||
...
...
@@ -333,10 +342,21 @@ void Key_Event_Short_Press_Right(void)//确认
void
Key_Event_SHORT_PRESS_2_Right
(
void
)
{
if
((
Get_DispVechileSpeed
()
>=
1990
)
&&
(
Get_DispEngineSpeed
()
>=
12000
))
{
;
}
else
{
if
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_MAIN_ITEM
)
{
Menu_Change_Branch_To_Item
(
MENU_BRANCH_ANIMATION
,
MENU_ITEM_PHONE_CONNECT_APP
);
}
else
{
;
}
}
}
...
...
@@ -401,7 +421,7 @@ void Key_Event_BackLight_Press_Left(void)
uint8_t
OTA_Update_Flag
=
0
;
void
Get_Into_OTA_Update_Mode
(
void
)
{
if
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_FAULT_INFORMATION
)
if
(
(
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_FAULT_INFORMATION
)
&&
(
Get_ActualVechileSpeed
()
==
0
)
)
{
OTA_Update_Flag
=
1U
;
}
...
...
@@ -449,7 +469,7 @@ void TYW_RESET_ODO(void)
{
if
(
ClearODO_Flag
<
1
)
{
if
((
Get_DispVechileSpeed
()
>=
1990
)
&&
(
Get_DispEngineSpeed
()
>=
12000
))
if
((
Get_DispVechileSpeed
()
>=
1990
)
&&
(
Get_DispEngineSpeed
()
>=
12000
)
&&
((
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_MAIN_ITEM
))
)
{
ClearODO_Flag
=
1
;
Data_Mileage_Clear
();
...
...
@@ -486,14 +506,12 @@ void My_Key_Service(void)
{
/* 自检和OTA界面时不可操作按键 */
if
((
g_u8SelfCheck
)
&&
(
OTA_Update_Flag
==
0
))
{
if
((
Get_ActualVechileSpeed
()
==
0
)
||
((
Get_DispVechileSpeed
()
>=
1990
)
&&
(
Get_DispEngineSpeed
()
>=
12000
))
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
>=
Phone_Outgoing
)
&&
(
BlueToothPhoneData
.
BlueToothPhoneSate
<=
Phone_Talking
)
||
((
Menu_Get_Current_Cursor_Information
()
==
MENU_ITEM_MAIN_ITEM
)))
{
Key_Service
();
}
else
{
;
}
}
...
...
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