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
8d3802ea
Commit
8d3802ea
authored
May 17, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改TCS指示灯逻辑
parent
46be5833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+13
-10
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
8d3802ea
...
@@ -361,14 +361,15 @@ static void LED_Bluetooth_Execution(Tellib_uint16_t led_status)
...
@@ -361,14 +361,15 @@ static void LED_Bluetooth_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_TCS_Judgement
(
void
)
static
Tellib_uint16_t
LED_TCS_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
((
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x120_Msg_Count
)
==
CAN_SIG_LOST
)
)
if
(
Get_Dis_Tcs_Val
()
==
1
)
{
{
LED_STATE
=
1
;
if
((
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x120_Msg_Count
)
==
CAN_SIG_LOST
)
)
}
{
else
LED_STATE
=
1
;
{
}
if
(
Get_Dis_Tcs_Val
()
==
1
)
else
{
{
if
((
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
1
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
2
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
3
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
5
))
if
((
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
1
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
2
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
3
)
||
(
Get_CAN_CH0_ID_120_Sig_TCSStatus
()
==
5
))
{
{
LED_STATE
=
1
;
LED_STATE
=
1
;
...
@@ -385,12 +386,14 @@ static Tellib_uint16_t LED_TCS_Judgement(void)
...
@@ -385,12 +386,14 @@ static Tellib_uint16_t LED_TCS_Judgement(void)
{
{
LED_STATE
=
0
;
LED_STATE
=
0
;
}
}
}
else
{
LED_STATE
=
0
;
}
}
}
}
else
{
LED_STATE
=
0
;
}
return
LED_STATE
;
return
LED_STATE
;
}
}
...
...
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