Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
82de0da6
Commit
82de0da6
authored
Feb 17, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整显示bug
parent
c231857e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
12 deletions
+17
-12
Key_user.c
source/Application/APP/Key/Key_user.c
+5
-1
GUI.c
source/Application/Graphic/GUI/GUI.c
+7
-6
GUI.h
source/Application/Graphic/GUI/GUI.h
+1
-0
Menu.h
source/Application/Graphic/Menu/Menu.h
+1
-1
Menu_user.c
source/Application/Graphic/Menu/Menu_user.c
+1
-1
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+2
-3
No files found.
source/Application/APP/Key/Key_user.c
View file @
82de0da6
...
@@ -1129,7 +1129,11 @@ void Key_Operation_Menu(Key_Event_en_t enKeyEvent)
...
@@ -1129,7 +1129,11 @@ void Key_Operation_Menu(Key_Event_en_t enKeyEvent)
/*----无车速,有报警----*/
/*----无车速,有报警----*/
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
;
/*Do Nothing!*/
/*自检模式进入经销商模式*/
if
(
bCurMenuIDX
==
_MN_DSP_Menu_Test
)
{
K_Line_Set
.
K_Line_LID51
=
0x02
;
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
...
source/Application/Graphic/GUI/GUI.c
View file @
82de0da6
...
@@ -6605,7 +6605,7 @@ void GUI_Display_DTC_Server(void)
...
@@ -6605,7 +6605,7 @@ void GUI_Display_DTC_Server(void)
{
{
DTCNumTime
=
0u
;
DTCNumTime
=
0u
;
if
(
DTCNumDis
<
2u
)
if
(
DTCNumDis
<
(
DTCNumeber
-
1u
)
)
{
{
DTCNumDis
++
;
DTCNumDis
++
;
}
}
...
@@ -6617,7 +6617,7 @@ void GUI_Display_DTC_Server(void)
...
@@ -6617,7 +6617,7 @@ void GUI_Display_DTC_Server(void)
}
}
else
else
{
{
if
(
DTCNumDis
<
2u
)
if
(
DTCNumDis
<
(
DTCNumeber
-
1u
)
)
{
{
DTCNumDis
++
;
DTCNumDis
++
;
}
}
...
@@ -6627,13 +6627,14 @@ void GUI_Display_DTC_Server(void)
...
@@ -6627,13 +6627,14 @@ void GUI_Display_DTC_Server(void)
}
}
}
}
DTCNum
=
Display_DTC
[
0u
].
Disp_True_False
+
for
(
i
=
0u
;
i
<
(
DTCNumeber
-
1u
);
i
++
)
Display_DTC
[
1u
].
Disp_True_False
+
{
Display_DTC
[
2u
].
Disp_True_False
;
DTCNum
+=
Display_DTC
[
i
].
Disp_True_False
;
}
if
(
DTCNum
==
0u
)
if
(
DTCNum
==
0u
)
{
{
DTCNumDis
=
3u
;
DTCNumDis
=
DTCNumeber
;
}
}
if
(
Display_DTC
[
DTCNumDis
].
Disp_True_False
==
1u
)
if
(
Display_DTC
[
DTCNumDis
].
Disp_True_False
==
1u
)
...
...
source/Application/Graphic/GUI/GUI.h
View file @
82de0da6
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#define Language_En 0u
#define Language_En 0u
#define Language_Cn 1u
#define Language_Cn 1u
#define DTCNumeber 3u
#define FState_COilTimeOutNum 60u
/*3S*/
#define FState_COilTimeOutNum 60u
/*3S*/
...
...
source/Application/Graphic/Menu/Menu.h
View file @
82de0da6
...
@@ -198,7 +198,7 @@ typedef struct
...
@@ -198,7 +198,7 @@ typedef struct
uint8_t
Menu_Key_Time
;
/*按键长按时间记录*/
uint8_t
Menu_Key_Time
;
/*按键长按时间记录*/
uint8_t
Key_Menu_Popup_Flag
;
/*报警界面menu按键长按 */
uint8_t
Key_Menu_Popup_Flag
;
/*报警界面menu按键长按 */
uint8_t
Menu_Popup_Flag
;
/*界面状态 0-通常 1-报警 2-工厂 3-经销商 4-仪表自我诊断*/
uint8_t
Menu_Popup_Flag
;
/*界面状态 0-通常 1-报警 2-工厂 3-经销商 4-仪表自我诊断*/
uint8_t
MenuNum
;
/*
历史界面保存
*/
uint8_t
MenuNum
;
/*
未用
*/
uint8_t
Key_MenuTest_Long
;
/**/
uint8_t
Key_MenuTest_Long
;
/**/
uint8_t
Key_MenuTest_ShortNum
;
/**/
uint8_t
Key_MenuTest_ShortNum
;
/**/
uint8_t
Menu_Factory
;
/*工厂模式*/
uint8_t
Menu_Factory
;
/*工厂模式*/
...
...
source/Application/Graphic/Menu/Menu_user.c
View file @
82de0da6
...
@@ -138,7 +138,7 @@ const _MenuOptTab MenuOptTab[] =
...
@@ -138,7 +138,7 @@ const _MenuOptTab MenuOptTab[] =
/*90*/
{
_FAC_DSP_LEVEL1_2MENU_2
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1MENU_2
,
LevelF1_2Menu_1Enter
,
LevelF1_2Menu_1Do
,
LevelF1_2Menu_1Exit
},
/*90*/
{
_FAC_DSP_LEVEL1_2MENU_2
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1MENU_2
,
LevelF1_2Menu_1Enter
,
LevelF1_2Menu_1Do
,
LevelF1_2Menu_1Exit
},
/*91*/
{
_FAC_DSP_LEVEL1_2MENU_3
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_2MENU_1
,
LevelF1_2Menu_2Enter
,
LevelF1_2Menu_2Do
,
LevelF1_2Menu_2Exit
},
/*91*/
{
_FAC_DSP_LEVEL1_2MENU_3
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_2MENU_1
,
LevelF1_2Menu_2Enter
,
LevelF1_2Menu_2Do
,
LevelF1_2Menu_2Exit
},
/*92*/
{
_FAC_DSP_LEVEL1_2MENU_4
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
LevelF1_2Menu_3Enter
,
LevelF1_2Menu_3Do
,
LevelF1_2Menu_3Exit
},
/*92*/
{
_FAC_DSP_LEVEL1_2MENU_4
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
LevelF1_2Menu_3Enter
,
LevelF1_2Menu_3Do
,
LevelF1_2Menu_3Exit
},
/*93*/
{
_FAC_DSP_LEVEL
1MENU_2
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
LevelF1_2Menu_4Enter
,
LevelF1_2Menu_4Do
,
LevelF1_2Menu_4Exit
},
/*93*/
{
_FAC_DSP_LEVEL
0MENU_1
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_MN_IDX_NULL
,
LevelF1_2Menu_4Enter
,
LevelF1_2Menu_4Do
,
LevelF1_2Menu_4Exit
},
/*94*/
{
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_3MENU_2
,
_FAC_DSP_LEVEL1MENU_3
,
LevelF1_3Menu_1Enter
,
LevelF1_3Menu_1Do
,
LevelF1_3Menu_1Exit
},
/*94*/
{
_MN_IDX_NULL
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_3MENU_2
,
_FAC_DSP_LEVEL1MENU_3
,
LevelF1_3Menu_1Enter
,
LevelF1_3Menu_1Do
,
LevelF1_3Menu_1Exit
},
/*95*/
{
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_3MENU_1
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1MENU_3
,
LevelF1_3Menu_2Enter
,
LevelF1_3Menu_2Do
,
LevelF1_3Menu_2Exit
},
/*95*/
{
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1_3MENU_1
,
_MN_IDX_NULL
,
_FAC_DSP_LEVEL1MENU_3
,
LevelF1_3Menu_2Enter
,
LevelF1_3Menu_2Do
,
LevelF1_3Menu_2Exit
},
...
...
source/Application/Graphic/UE/DisplaySch_user.c
View file @
82de0da6
...
@@ -66,7 +66,6 @@ void DispSch_TotalInit(void)
...
@@ -66,7 +66,6 @@ void DispSch_TotalInit(void)
if
(
BG_display_flag
==
0u
)
if
(
BG_display_flag
==
0u
)
{
{
BG_display_flag
=
1u
;
BG_display_flag
=
1u
;
MenuFlag
.
MenuNum
=
0u
;
MenuFlag
.
Menu_Popup_Flag
=
0u
;
MenuFlag
.
Menu_Popup_Flag
=
0u
;
MenuInit
();
MenuInit
();
...
@@ -92,9 +91,10 @@ void DisplayServices(void)
...
@@ -92,9 +91,10 @@ void DisplayServices(void)
}
}
else
else
{
{
/*获取四种模式*/
Meter_Mode_conversion
();
Meter_Mode_conversion
();
if
(
K_Line_Set
.
K_Line_LID51
==
0x01u
)
if
(
(
K_Line_Set
.
K_Line_LID51
==
0x01u
)
&&
(
MenuFlag
.
Menu_Test
!=
1u
)
)
{
{
popupID
=
Popup_Get_Current_Message
();
popupID
=
Popup_Get_Current_Message
();
}
}
...
@@ -299,7 +299,6 @@ void GUI_DisplayServices(void)
...
@@ -299,7 +299,6 @@ void GUI_DisplayServices(void)
if
(
MenuFlag
.
Menu_Popup_Flag
==
0u
)
if
(
MenuFlag
.
Menu_Popup_Flag
==
0u
)
{
{
MenuFlag
.
Menu_Popup_Flag
=
1u
;
MenuFlag
.
Menu_Popup_Flag
=
1u
;
//MenuFlag.MenuNum = bCurMenuIDX;
NextMenu
(
_MN_DSP_LEVEPOPUP
);
NextMenu
(
_MN_DSP_LEVEPOPUP
);
bCurMenuIDX
=
_MN_DSP_LEVEPOPUP
;
bCurMenuIDX
=
_MN_DSP_LEVEPOPUP
;
...
...
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