Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
333c5a72
Commit
333c5a72
authored
Jul 14, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:交互指示灯占空比逻辑更改
parent
31dc55ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
BackLight.c
Firmware/Source/Application/BackLight/BackLight.c
+1
-1
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+3
-1
No files found.
Firmware/Source/Application/BackLight/BackLight.c
View file @
333c5a72
...
@@ -71,7 +71,7 @@ void BackLight_Clock_All_Process(void)
...
@@ -71,7 +71,7 @@ void BackLight_Clock_All_Process(void)
void
Interact_Light_Process
(
void
)
void
Interact_Light_Process
(
void
)
{
{
if
(
openLED_flag
&&
(
Charge_OFF_Flag
==
0
))
if
(
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
)
&&
(
Charge_OFF_Flag
==
0
))
{
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER0
,
TIMERM_CHD
,
interact_PWM_Low_Duty
*
10
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER0
,
TIMERM_CHD
,
interact_PWM_Low_Duty
*
10
);
}
}
...
...
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
333c5a72
...
@@ -341,11 +341,12 @@ void Gauge_Service(void)
...
@@ -341,11 +341,12 @@ void Gauge_Service(void)
if
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
))
if
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
))
{
{
BUZZER_Init
();
BUZZER_Init
();
interact_PWM_Low_Duty
=
100
;
if
(
Common_GetIgnOnTime
()
>
1500
)
if
(
Common_GetIgnOnTime
()
>
1500
)
{
{
SOC_charge_seg_Flag
=
0
;
SOC_charge_seg_Flag
=
0
;
Checkself_Init
();
Checkself_Init
();
interact_PWM_Low_Duty
=
100
;
Gauge_CAN_setup_Service
();
Gauge_CAN_setup_Service
();
}
}
else
else
...
@@ -398,6 +399,7 @@ void Gauge_Service(void)
...
@@ -398,6 +399,7 @@ void Gauge_Service(void)
BUZZER_Init
();
BUZZER_Init
();
poweroff_time
=
0
;
poweroff_time
=
0
;
Clear_Bu98
();
Clear_Bu98
();
interact_PWM_Low_Duty
=
100
;
for
(
i
=
0
;
i
<
LampCh0_MAX
;
i
++
)
for
(
i
=
0
;
i
<
LampCh0_MAX
;
i
++
)
{
{
LED_Driver_Channel_Set
(
LampChannel_0
,
i
,
LED_OFF
);
LED_Driver_Channel_Set
(
LampChannel_0
,
i
,
LED_OFF
);
...
...
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