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
82041e3c
Commit
82041e3c
authored
May 21, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:43555,43559,清大计扫表点亮所有背景灯,重上15电继续扫表
parent
aff317b6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
39 deletions
+65
-39
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+25
-3
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+38
-30
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+1
-4
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-2
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
82041e3c
...
...
@@ -66,16 +66,38 @@ void Clear_Bu98(void)
void
Gauge_Service
(
void
)
{
static
uint16_t
VSpeed_Count
=
0u
;
uint8_t
k
=
0
;
if
(
ClearODO_Flag
==
1
)
{
if
(
Common_Get_IG_Sts
(
)
==
COMMON_POWER_ON
)
{
Check_SEG_Display
();
for
(
k
=
0
;
k
<
LampCh0_MAX
;
k
++
)
{
if
(
k
==
24
)
{
k
++
;
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
k
,
LED_ON
);
}
}
}
else
{
Clear_Bu98
();
for
(
k
=
0
;
k
<
LampCh0_MAX
;
k
++
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
k
,
LED_OFF
);
}
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_35_ODO, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_34_TRIP, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Screen_Time, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_KMH, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_MPH, LED_OFF);
}
}
else
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
82041e3c
...
...
@@ -1138,10 +1138,44 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG079
=
IC_SEG_ON
;
IC1_SEG086
=
IC_SEG_ON
;
if
(
Get_Battery_Voltage_Valid
()
==
1
)
if
((
Get_Battery_Voltage_Valid
()
!=
1
)
&&
(
ClearODO_Flag
!=
1
)
&&
(
Common_GetIgnOnTime
()
>
3000
))
{
IC1_SEG088
=
IC_SEG_ON
;
IC1_SEG081
=
IC_SEG_ON
;
IC1_SEG096
=
IC_SEG_OFF
;
IC1_SEG095
=
IC_SEG_OFF
;
IC1_SEG093
=
IC_SEG_OFF
;
IC1_SEG099
=
IC_SEG_OFF
;
IC1_SEG098
=
IC_SEG_OFF
;
IC1_SEG097
=
IC_SEG_OFF
;
IC1_SEG094
=
IC_SEG_OFF
;
IC1_SEG090
=
IC_SEG_OFF
;
IC1_SEG089
=
IC_SEG_OFF
;
IC1_SEG087
=
IC_SEG_OFF
;
IC1_SEG100
=
IC_SEG_OFF
;
IC1_SEG092
=
IC_SEG_OFF
;
IC1_SEG091
=
IC_SEG_OFF
;
IC1_SEG083
=
IC_SEG_OFF
;
IC1_SEG082
=
IC_SEG_OFF
;
IC1_SEG080
=
IC_SEG_OFF
;
IC1_SEG101
=
IC_SEG_OFF
;
IC1_SEG085
=
IC_SEG_OFF
;
IC1_SEG084
=
IC_SEG_OFF
;
}
else
{
Num
=
m_NUM
/
100
;
if
((
ClearODO_Flag
==
1
)
||
(
Common_GetIgnOnTime
()
<=
3000
))
{
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
else
{
m8
=
SEG_UNDISPLAY_NUMBER0
[
Num
];
}
if
(
Bit_Is_Set
(
m8
,
0
))
{
...
...
@@ -1325,32 +1359,6 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM)
IC1_SEG081
=
IC_SEG_OFF
;
}
}
else
{
IC1_SEG088
=
IC_SEG_ON
;
IC1_SEG081
=
IC_SEG_ON
;
IC1_SEG096
=
IC_SEG_OFF
;
IC1_SEG095
=
IC_SEG_OFF
;
IC1_SEG093
=
IC_SEG_OFF
;
IC1_SEG099
=
IC_SEG_OFF
;
IC1_SEG098
=
IC_SEG_OFF
;
IC1_SEG097
=
IC_SEG_OFF
;
IC1_SEG094
=
IC_SEG_OFF
;
IC1_SEG090
=
IC_SEG_OFF
;
IC1_SEG089
=
IC_SEG_OFF
;
IC1_SEG087
=
IC_SEG_OFF
;
IC1_SEG100
=
IC_SEG_OFF
;
IC1_SEG092
=
IC_SEG_OFF
;
IC1_SEG091
=
IC_SEG_OFF
;
IC1_SEG083
=
IC_SEG_OFF
;
IC1_SEG082
=
IC_SEG_OFF
;
IC1_SEG080
=
IC_SEG_OFF
;
IC1_SEG101
=
IC_SEG_OFF
;
IC1_SEG085
=
IC_SEG_OFF
;
IC1_SEG084
=
IC_SEG_OFF
;
}
}
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
82041e3c
...
...
@@ -404,10 +404,7 @@ void TYW_RESET_ODO(void)
}
}
}
else
{
ClearODO_Flag
=
0
;
}
}
void
Maintain_Reset_Service
(
void
)
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
82041e3c
...
...
@@ -144,7 +144,6 @@ static void Power_IG_OFF_Init(void)
static
void
Power_IG_ON_Init
(
void
)
{
ClearODO_Flag
=
0
;
Checkself_Init
();
Line_In_KL15_ON_Init
();
Telltales_KL15_Init
();
...
...
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