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
70584805
Commit
70584805
authored
Jul 15, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:胎压学习580外发三帧更改
parent
8c42b5aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+7
-7
Can_User.c
Firmware/Source/Application/CAN_User/Can_User.c
+4
-0
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
70584805
...
@@ -157,7 +157,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
...
@@ -157,7 +157,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
if
(
Get_Tpms_TX_Flag
()
==
1
)
if
(
Get_Tpms_TX_Flag
()
==
1
)
{
{
if
(
++
CAN_TX_Count
>
=
3
)
if
(
++
CAN_TX_Count
>
3
)
{
{
Tpms_TX_Flag
=
0
;
Tpms_TX_Flag
=
0
;
CAN_TX_Count
=
0
;
CAN_TX_Count
=
0
;
...
@@ -170,7 +170,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
...
@@ -170,7 +170,7 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
}
}
else
if
(
Get_Tpms_TX_Flag
()
==
2
)
else
if
(
Get_Tpms_TX_Flag
()
==
2
)
{
{
if
(
++
CAN_TX_Count
>
=
3
)
if
(
++
CAN_TX_Count
>
3
)
{
{
Tpms_TX_Flag
=
0
;
Tpms_TX_Flag
=
0
;
CAN_TX_Count
=
0
;
CAN_TX_Count
=
0
;
...
@@ -184,11 +184,11 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
...
@@ -184,11 +184,11 @@ void Can_Set_Buff_580(canlib_uint8_t CopyData[])
else
else
{
{
CAN_TX_Count
=
0
;
CAN_TX_Count
=
0
;
p580
->
Sig
.
TPMS_LEARN_CND_BYTE0
=
0x0
;
//
p580 -> Sig.TPMS_LEARN_CND_BYTE0 = 0x0;
p580
->
Sig
.
TPMS_LEARN_CND_BYTE1
=
0x0
;
//
p580 -> Sig.TPMS_LEARN_CND_BYTE1 = 0x0;
p580
->
Sig
.
TPMS_LEARN_CND_BYTE2
=
0x0
;
//
p580 -> Sig.TPMS_LEARN_CND_BYTE2 = 0x0;
p580
->
Sig
.
TPMS_LEARN_CND_BYTE3
=
0x0
;
//
p580 -> Sig.TPMS_LEARN_CND_BYTE3 = 0x0;
p580
->
Sig
.
TPMS_LEARN_CND_BYTE4
=
0x02
;
//
p580 -> Sig.TPMS_LEARN_CND_BYTE4 = 0x02;
}
}
}
}
...
...
Firmware/Source/Application/CAN_User/Can_User.c
View file @
70584805
...
@@ -346,7 +346,11 @@ void Can_Write(st_CAN_Msg *Msg)
...
@@ -346,7 +346,11 @@ void Can_Write(st_CAN_Msg *Msg)
break
;
break
;
#if (IC_Current == TY200_080000b_ty)
#if (IC_Current == TY200_080000b_ty)
case
0x580
:
case
0x580
:
if
(
Get_Tpms_TX_Flag
()
==
1
||
Get_Tpms_TX_Flag
()
==
2
)
{
CAN_Transmit
(
CAN0MSG14
,
&
CAN_SendMsg
);
CAN_Transmit
(
CAN0MSG14
,
&
CAN_SendMsg
);
}
break
;
break
;
#endif
#endif
default:
default:
...
...
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