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
7173fbae
Commit
7173fbae
authored
9 months ago
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:46943 【天鹰TY100】【自检】简易导航自检开始和结束显示错误,更改自检0不消隐
parent
1508cd51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+23
-5
No files found.
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
7173fbae
...
...
@@ -636,7 +636,14 @@ void SEG_SET_Navigation_STS(uint8_t m_Flag, uint8_t m_Code, uint32_t m_Mileage)
{
Num
=
m_Mileage
/
100000
;
}
m8
=
SEG_UNDISPLAY_NUMBER0
[
Num
];
if
((
ClearODO_Flag
==
1
)
||
(
Common_GetIgnOnTime
()
<
3000
))
{
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
else
{
m8
=
SEG_UNDISPLAY_NUMBER0
[
Num
];
}
if
(
Bit_Is_Set
(
m8
,
0
))
{
...
...
@@ -694,6 +701,7 @@ void SEG_SET_Navigation_STS(uint8_t m_Flag, uint8_t m_Code, uint32_t m_Mileage)
{
IC1_SEG014
=
IC_SEG_OFF
;
}
if
(
m_Mileage
<
1000
)
{
Num
=
m_Mileage
/
100
;
...
...
@@ -709,9 +717,13 @@ void SEG_SET_Navigation_STS(uint8_t m_Flag, uint8_t m_Code, uint32_t m_Mileage)
else
{
m8
=
SEG_UNDISPLAY_NUMBER0
[
Num
];
}
}
}
if
((
ClearODO_Flag
==
1
)
||
(
Common_GetIgnOnTime
()
<
3000
))
{
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
if
(
Bit_Is_Set
(
m8
,
0
))
{
...
...
@@ -787,7 +799,10 @@ void SEG_SET_Navigation_STS(uint8_t m_Flag, uint8_t m_Code, uint32_t m_Mileage)
Num
=
((
m_Mileage
/
100
)
/
10
)
%
10
;
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
if
((
ClearODO_Flag
==
1
)
||
(
Common_GetIgnOnTime
()
<
3000
))
{
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
if
(
Bit_Is_Set
(
m8
,
0
))
{
IC1_SEG133
=
IC_SEG_ON
;
...
...
@@ -857,7 +872,10 @@ void SEG_SET_Navigation_STS(uint8_t m_Flag, uint8_t m_Code, uint32_t m_Mileage)
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
if
((
ClearODO_Flag
==
1
)
||
(
Common_GetIgnOnTime
()
<
3000
))
{
m8
=
SEG_DISPLAY_NUMBER0
[
Num
];
}
if
(
Bit_Is_Set
(
m8
,
0
))
{
IC1_SEG132
=
IC_SEG_ON
;
...
...
This diff is collapsed.
Click to expand it.
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