Commit d47b13e1 authored by 王雅楠's avatar 王雅楠

🐞 fix:【56247】修复夜间模式小计没有单位BUG

parent 86031587
......@@ -173,7 +173,7 @@ static uint16_t NumbeList_FaultCode_night[]={
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)
{
......@@ -183,6 +183,10 @@ static void AMT630H_GUI_FaultCode(uint8_t FaultCodevalid,uint8_t FaultCode_hight
uint16_t midnumber;
frontnumber = FaultCode_hight;
midnumber = FaultCode_mid;
FaultCodevalid_monitor = FaultCodevalid;
if(FaultCodevalid == 1)
{
if(g_u8Display_Mode == ModeDAY)
......@@ -3574,7 +3578,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara.MinDigits = 4;
if(Uint == 0)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0580_187_324);/*单位km*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0688_187_324);/*单位km*/
}
else
{
......@@ -3587,7 +3591,7 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara.MinDigits = 3;
if(Uint == 0)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0580_163_324);/*KM*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0688_163_324);/*KM*/
}
else
{
......@@ -3600,20 +3604,20 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara.MinDigits = 2;
if(Uint == 0)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0580_139_324);/*KM*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0688_139_324);/*KM*/
}
else
{
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.MinDigits = 2;
if(Uint == 0)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0580_139_324);/*单位KM*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0688_139_324);/*单位KM*/
}
else
{
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment