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
ba68a490
Commit
ba68a490
authored
Sep 18, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:61530 水温表显示有误
parent
7d29024b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
Data_Coolant.c
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
+17
-9
No files found.
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
View file @
ba68a490
...
...
@@ -345,18 +345,26 @@ void Data_Coolant_Temp_Display ( void )
{
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_Holdtimer
>=
CoolantFlashtimer
)
{
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
}
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
//
++;
//
if (DataCoolantTemp_Dis.u8_Holdtimer >= CoolantFlashtimer)
//
{
//
DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer;
//
}
/*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
2
,
(
CoolantFlashtimer
-
DataCoolantTemp_Dis
.
u8_Holdtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
// if(u32ColCurNum < DataCoolantTemp.Value*100)
// {
// u32ColCurNum += 100;
// }
// else if (u32ColCurNum > DataCoolantTemp.Value*100)
// {
// u32ColCurNum -= 100;
// }
// else
// {
// u32ColCurNum = DataCoolantTemp.Value*100;
// }
}
}
...
...
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