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
df9abfdb
Commit
df9abfdb
authored
May 30, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改代码审核问题:远光灯开启关闭计时
parent
aa8896ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
BackLight.c
Firmware/Source/Application/BackLight/BackLight.c
+1
-1
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+4
-4
No files found.
Firmware/Source/Application/BackLight/BackLight.c
View file @
df9abfdb
...
...
@@ -19,7 +19,7 @@ void BackLight_Process(void)
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
HighBeam_Timer
.
LED_Turnon
==
5
)
if
(
HighBeam_Timer
.
LED_Turnon
==
10
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_NIGHT
);
}
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
df9abfdb
...
...
@@ -90,13 +90,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
if
(
Line_In_Get_Status
(
LINE_IN_HighBeam
))
{
LED_STATE
=
1
;
if
(
HighBeam_Timer
.
LED_Turnon
<
5
)
if
(
HighBeam_Timer
.
LED_Turnon
<
10
)
{
HighBeam_Timer
.
LED_Turnon
++
;
}
else
{
HighBeam_Timer
.
LED_Turnon
=
5
;
HighBeam_Timer
.
LED_Turnon
=
10
;
HighBeam_Timer
.
LED_Turnoff
=
0
;
}
...
...
@@ -104,13 +104,13 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
else
{
LED_STATE
=
0
;
if
(
HighBeam_Timer
.
LED_Turnoff
<
5
)
if
(
HighBeam_Timer
.
LED_Turnoff
<
10
)
{
HighBeam_Timer
.
LED_Turnoff
++
;
}
else
{
HighBeam_Timer
.
LED_Turnoff
=
5
;
HighBeam_Timer
.
LED_Turnoff
=
10
;
HighBeam_Timer
.
LED_Turnon
=
0
;
}
...
...
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