Commit 88f9149e authored by 郑萍's avatar 郑萍

Revert " feat:转速"

This reverts commit 4d96ec80
parent 4d96ec80
......@@ -2577,7 +2577,6 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
/*转速显示函数*/
static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
{
uint8_t PIC = 0;
if ((Pic_mode == PIC_DAYTIME_Main_CH) || (Pic_mode == PIC_DAYTIME_Main_EN))
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0606_834_199); /* 1000r/min */
......@@ -2604,14 +2603,14 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
if (ESpeedNumber > 0)
{
ESpeedLevel = (ESpeedNumber - 1) / 1000;
for (PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
}
}
else if (ESpeedNumber == 0)
{
ESpeedLevel = 0;
}
for (int PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
}
}
......@@ -2641,14 +2640,14 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
if (ESpeedNumber > 0)
{
ESpeedLevel = (ESpeedNumber - 1) / 1000;
for (PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
}
}
else if (ESpeedNumber == 0)
{
ESpeedLevel = 0;
}
for (int PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
}
}
else
......@@ -2690,22 +2689,15 @@ void AMT630H_GUI_BACKGRAND()
AMT630H_GUI_Fuel(2);
AMT630H_GUI_Voltage(123);
AMT630H_GUI_ODO(123456);
if (Get_VechileSpeedValid() == 1)
if(Get_VechileSpeedValid() == 1)
{
AMT630H_GUI_VSpeed(Get_DispVechileSpeed() / 10);
AMT630H_GUI_VSpeed(Get_DispVechileSpeed()/10);
}
else
{
AMT630H_GUI_VSpeed(0);
}
// if(Get_EngineValid() == 1)
// {
AMT630H_GUI_ESpeed(Get_DispEngineSpeed());
// }
// else
// {
// AMT630H_GUI_ESpeed(0);
// }
AMT630H_GUI_ESpeed(1234);
}
void AMT630H_GUI_SETTING()
......
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