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
fce23654
Commit
fce23654
authored
Jul 19, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:下电充电逻辑整改以及增加逻辑括号修改语法错误
parent
65da23a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+22
-20
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
fce23654
...
...
@@ -92,7 +92,7 @@ uint8_t Get_CAN_Num_MBMS_Soc_1_Grid(void)
{
num
++
;
}
if
(
num
>
10
)
if
(
num
>
10
)
{
num
=
10
;
}
...
...
@@ -107,7 +107,7 @@ uint8_t Get_CAN_Num_SBMS_Soc_2_Grid(void)
{
num
++
;
}
if
(
num
>
10
)
if
(
num
>
10
)
{
num
=
10
;
}
...
...
@@ -198,6 +198,8 @@ void Gauge_Power_SOC_CHAGING_Display(void)
}
else
{
SOC1_Count
=
0
;
SOC2_Count
=
0
;
SEG_SET_EleDial_1SOC
(
1
,
Current_1_Grid
);
SEG_SET_EleDial_2SOC
(
1
,
Current_2_Grid
);
}
...
...
@@ -302,7 +304,9 @@ void Data_CumulativeWorkHours_EEPROM_Write(void)
CumulativeWorkHours_Writeback
=
CurrentData
;
}
}
else
if
(
CumulativeWorkHours_Writeback
!=
0
)
else
{
if
(
CumulativeWorkHours_Writeback
!=
0
)
{
if
(
CurrentData
<
CumulativeWorkHours_Writeback
)
{
...
...
@@ -314,6 +318,7 @@ void Data_CumulativeWorkHours_EEPROM_Write(void)
}
}
}
}
}
void
Gauge_Clock_All_Display
(
void
)
...
...
@@ -490,7 +495,7 @@ void Gauge_CAN_setup_Service(void)
if
(
poweroff_time
<
3600
)
{
Gauge_Power_SOC_CHAGING_Display
();
if
(
MBMS_TOTALSigAcc
==
0x0
&&
MBMS_TOTALSigCharge
==
0x1
)
// 下电充电)
if
(
(
MBMS_TOTALSigAcc
==
0x0
)
&&
(
MBMS_TOTALSigCharge
==
0x1
)
)
// 下电充电)
{
Charge_OFF_Flag
=
1
;
}
...
...
@@ -504,7 +509,7 @@ void Gauge_CAN_setup_Service(void)
Charge_OFF_Flag
=
2
;
SEG_SET_EleDial_1SOC
(
0
,
0
);
SEG_SET_EleDial_2SOC
(
0
,
0
);
if
(
MBMS_TOTALSigAcc
==
0x1
&&
MBMS_TOTALSigCharge
==
0x1
)
// 上电充电)
if
(
(
MBMS_TOTALSigAcc
==
0x1
)
&&
(
MBMS_TOTALSigCharge
==
0x1
)
)
// 上电充电)
{
Charge_OFF_Flag
=
0
;
poweroff_time
=
0
;
...
...
@@ -515,20 +520,17 @@ void Gauge_CAN_setup_Service(void)
case
CHRG_PLUGIN
:
case
CHRGEND
:
{
if
(
MBMS_TOTALSigAcc
==
0x0
&&
MBMS_TOTALSigCharge
==
0x1
)
// 下电充电)
if
(
(
MBMS_TOTALSigAcc
==
0x0
)
&&
(
MBMS_TOTALSigCharge
==
0x1
)
)
// 下电充电)
{
Charge_OFF_Flag
=
1
;
Gauge_Power_SOC_pull_Display
();
SOC1_Count
=
0
;
SOC2_Count
=
0
;
}
else
else
if
((
MBMS_TOTALSigAcc
==
0x1
)
&&
(
MBMS_TOTALSigCharge
==
0x1
))
{
Charge_OFF_Flag
=
0
;
}
Gauge_Power_SOC_pull_Display
();
SOC1_Count
=
0
;
SOC2_Count
=
0
;
}
poweroff_time
=
0
;
}
break
;
...
...
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