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
50024321
Commit
50024321
authored
Sep 19, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:62041 【天鹰TY200】ID220外发AliveCounter出现异常跳变,上大电心跳信号初始化两次。增加初始化条件
parent
c4943fc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+11
-1
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+3
-2
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
50024321
...
...
@@ -5,6 +5,8 @@
uint16_t
CAN_TX_Count
=
0
;
uint16_t
AliveCountTimer
=
0
;
uint8_t
Power_KL30_Init_flag
=
0
;
uint8_t
AliveCount_KL30_ResettingFlag
=
0
;
extern
uint8_t
Tpms_TX_Flag
;
...
...
@@ -18,7 +20,15 @@ void CAN_TX_Flag_Init(void)
void
CAN_TX_Count_Init
(
void
)
{
CAN_TX_Count
=
0
;
if
(
AliveCount_KL30_ResettingFlag
>
0
)
{
AliveCount_KL30_ResettingFlag
=
0
;
}
else
{
AliveCountTimer
=
0
;
}
}
void
Can_Set_Buff_220
(
canlib_uint8_t
CopyData
[])
{
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
50024321
...
...
@@ -44,6 +44,7 @@ void PwrMemInit(void)
}
extern
uint8_t
Power_KL30_Init_flag
;
extern
uint8_t
AliveCount_KL30_ResettingFlag
;
static
void
Power_KL30_Init
(
void
)
{
CAN_TX_Flag_Init
();
...
...
@@ -102,7 +103,7 @@ static void Power_KL30_Init(void)
Common_DataInit
();
Power_KL30_Init_flag
=
1
;
AliveCount_KL30_ResettingFlag
=
1
;
}
extern
uint32_t
PowerIgnOffTimeLine
;
static
void
Power_Wakeup_Init
(
void
)
...
...
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