Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
d47b13e1
Commit
d47b13e1
authored
Aug 27, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:【56247】修复夜间模式小计没有单位BUG
parent
86031587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+11
-6
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
d47b13e1
...
@@ -173,7 +173,7 @@ static uint16_t NumbeList_FaultCode_night[]={
...
@@ -173,7 +173,7 @@ static uint16_t NumbeList_FaultCode_night[]={
Pic_0234_605_289
,
Pic_0234_605_289
,
};
};
uint8_t
FaultCodevalid_monitor
=
2
;
/*故障码显示函数*/
/*故障码显示函数*/
static
void
AMT630H_GUI_FaultCode
(
uint8_t
FaultCodevalid
,
uint8_t
FaultCode_hight
,
uint8_t
FaultCode_mid
)
static
void
AMT630H_GUI_FaultCode
(
uint8_t
FaultCodevalid
,
uint8_t
FaultCode_hight
,
uint8_t
FaultCode_mid
)
{
{
...
@@ -183,6 +183,10 @@ static void AMT630H_GUI_FaultCode(uint8_t FaultCodevalid,uint8_t FaultCode_hight
...
@@ -183,6 +183,10 @@ static void AMT630H_GUI_FaultCode(uint8_t FaultCodevalid,uint8_t FaultCode_hight
uint16_t
midnumber
;
uint16_t
midnumber
;
frontnumber
=
FaultCode_hight
;
frontnumber
=
FaultCode_hight
;
midnumber
=
FaultCode_mid
;
midnumber
=
FaultCode_mid
;
FaultCodevalid_monitor
=
FaultCodevalid
;
if
(
FaultCodevalid
==
1
)
if
(
FaultCodevalid
==
1
)
{
{
if
(
g_u8Display_Mode
==
ModeDAY
)
if
(
g_u8Display_Mode
==
ModeDAY
)
...
@@ -3574,7 +3578,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
...
@@ -3574,7 +3578,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara
.
MinDigits
=
4
;
DisplayNumPara
.
MinDigits
=
4
;
if
(
Uint
==
0
)
if
(
Uint
==
0
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580
_187_324
);
/*单位km*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688
_187_324
);
/*单位km*/
}
}
else
else
{
{
...
@@ -3587,7 +3591,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
...
@@ -3587,7 +3591,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara
.
MinDigits
=
3
;
DisplayNumPara
.
MinDigits
=
3
;
if
(
Uint
==
0
)
if
(
Uint
==
0
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580
_163_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688
_163_324
);
/*KM*/
}
}
else
else
{
{
...
@@ -3600,20 +3604,20 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
...
@@ -3600,20 +3604,20 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
if
(
Uint
==
0
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580
_139_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688
_139_324
);
/*KM*/
}
}
else
else
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_139_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_139_324
);
/*单位mile*/
}
}
}
}
else
if
((
Tripnumber
<
10
)
&&
(
Tripnumber
>=
0
))
else
if
((
Tripnumber
<
10
)
&&
(
Tripnumber
>=
0
))
{
{
DisplayNumPara
.
x
=
93
;
DisplayNumPara
.
x
=
93
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
if
(
Uint
==
0
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580
_139_324
);
/*单位KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688
_139_324
);
/*单位KM*/
}
}
else
else
{
{
...
@@ -3624,6 +3628,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
...
@@ -3624,6 +3628,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
}
}
}
}
/*车速显示函数*/
/*车速显示函数*/
static
void
AMT630H_GUI_VSpeed
(
uint16_t
VSpeed
,
uint8_t
Unit
)
static
void
AMT630H_GUI_VSpeed
(
uint16_t
VSpeed
,
uint8_t
Unit
)
{
{
...
...
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