Commit 350ca82e authored by 时昊's avatar 时昊

feat:修改功率表显示

parent 1a7911c7
...@@ -310,6 +310,12 @@ void Gauge_Power_Display(void) ...@@ -310,6 +310,12 @@ void Gauge_Power_Display(void)
SEG_SET_PowerDial(1u, 0u, 0u, 0u); SEG_SET_PowerDial(1u, 0u, 0u, 0u);
} }
else//PTModeInd = 1,且有效时 else//PTModeInd = 1,且有效时
{
if(BattCurr.Value == 0)
{
SEG_SET_PowerDial(1u, 0u, 0u, 255u);
}
else
{ {
//-1格和-50% //-1格和-50%
SEG_SET_PowerDial(1u, 0x81u, 1u, 50u); SEG_SET_PowerDial(1u, 0x81u, 1u, 50u);
...@@ -322,6 +328,7 @@ void Gauge_Power_Display(void) ...@@ -322,6 +328,7 @@ void Gauge_Power_Display(void)
} }
} }
} }
}
else else
{ {
BattCurr.Valid = 0; BattCurr.Valid = 0;
......
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