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
dcb6b00a
Commit
dcb6b00a
authored
Mar 03, 2025
by
zhengyuan.bai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 自检时故障指示灯不闪烁
parent
8cbb3659
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+1
-1
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+14
-6
SEG_DISPLAY.h
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
+1
-1
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
dcb6b00a
...
...
@@ -149,7 +149,7 @@ void Gauge_faultcode_Display(void)
{
uint8_t
u8faucodeValid
=
Get_FaultCode_Valid
();
uint8_t
u8faucodelValue
=
Get_FaultCode_Value
();
SEG_SET_Fault_Code
(
u8faucodeValid
,
u8faucodelValue
);
SEG_SET_Fault_Code
(
u8faucodeValid
,
u8faucodelValue
,
0
);
}
void
Clear_Bu98
(
void
)
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
dcb6b00a
...
...
@@ -1018,7 +1018,7 @@ _Fun_Res SEG_SET_EleDial_AllSOC(uint8_t m_Flag, uint16_t m_NUM)
* - EX_OK 上报成功
* - EX_ERR 上报失败
*/
_Fun_Res
SEG_SET_Fault_Code
(
uint8_t
m_Flag
,
uint16_t
m_NUM
)
_Fun_Res
SEG_SET_Fault_Code
(
uint8_t
m_Flag
,
uint16_t
m_NUM
,
uint8_t
checkself
)
{
_Fun_Res
m_Res
;
uint16_t
Num
;
...
...
@@ -1030,6 +1030,8 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
else
{
if
(
m_Flag
==
1u
)
{
if
(
checkself
!=
1
)
{
if
(
FLASH_SYNC_1Hz
)
{
...
...
@@ -1039,6 +1041,12 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG087
=
IC_SEG_GREY
;
}
}
else
{
IC1_SEG087
=
IC_SEG_ON
;
}
IC1_SEG094
=
IC_SEG_ON
;
IC1_SEG093
=
IC_SEG_ON
;
IC1_SEG091
=
IC_SEG_ON
;
...
...
@@ -2691,7 +2699,7 @@ void Check_SEG_Display(void)
uint32_t
fau_code
=
Checkself_num
*
1111
;
Fuel
=
Checkself_SEG_step
/
5u
;
SEG_SET_FuelDial
(
1
,
Fuel
);
SEG_SET_Fault_Code
(
1
,
fau_code
);
SEG_SET_Fault_Code
(
1
,
fau_code
,
1
);
}
uint32_t
EleDial_2SOC
=
((
check_SEG_step
*
10
)
/
48
);
...
...
@@ -2777,7 +2785,7 @@ void Checkself_SEG_Display(void)
uint32_t
fau_code
=
Checkself_num
*
1111
;
Fuel
=
Checkself_SEG_step
/
5u
;
SEG_SET_FuelDial
(
1
,
Fuel
);
SEG_SET_Fault_Code
(
1
,
fau_code
);
SEG_SET_Fault_Code
(
1
,
fau_code
,
1
);
}
uint32_t
EleDial_2SOC
=
((
Checkself_SEG_step
*
10
)
/
48
);
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
View file @
dcb6b00a
...
...
@@ -83,7 +83,7 @@ _Fun_Res SEG_SET_L8_NUM(uint8_t m_Flag , uint8_t m_NUM);
/**@brief 故障码显示函数*/
_Fun_Res
SEG_SET_Fault_Code
(
uint8_t
m_Flag
,
uint16_t
m_NUM
);
_Fun_Res
SEG_SET_Fault_Code
(
uint8_t
m_Flag
,
uint16_t
m_NUM
,
uint8_t
checkself
);
/**@brief 单次时间显示函数*/
_Fun_Res
SEG_SET_Clock
(
uint8_t
m_hour
,
uint8_t
m_minute
,
uint8_t
m_icon
,
uint8_t
m_Flag1
,
uint8_t
m_Flag2
);
...
...
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